Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] The resolver did not handle type mismatch correctly on the schema #325

Closed
Peefy opened this issue Dec 7, 2022 · 0 comments · Fixed by #384
Closed

[Bug] The resolver did not handle type mismatch correctly on the schema #325

Peefy opened this issue Dec 7, 2022 · 0 comments · Fixed by #384
Assignees
Labels
bug Something isn't working resolver

Comments

@Peefy
Copy link
Contributor

Peefy commented Dec 7, 2022

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

Write the KCL code (main.k):

schema Foo:
    foo: int

schema Bar:
    bar: int

foo: Foo = Bar {
    bar: 1
}

2. What did you expect to see? (Required)

KCL Compile Error[E2G22] : The type got is inconsistent with the type expected
---> File main.k:7:1
7 |foo: Foo = Bar {
 1 ^  -> got Bar
expect Foo, got Bar

3. What did you see instead (Required)

foo:
  bar: 1

4. What is your KusionStack components version? (Required)

@Peefy Peefy added bug Something isn't working help wanted Extra attention is needed resolver labels Dec 7, 2022
@Peefy Peefy added this to the v0.4.5 Release milestone Dec 7, 2022
@Peefy Peefy removed the help wanted Extra attention is needed label Dec 7, 2022
@Peefy Peefy assigned Peefy and unassigned zong-zhe Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working resolver
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants