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 in adding to list #1400

Closed
steeling opened this issue Jun 5, 2024 · 1 comment · Fixed by #1402
Closed

bug in adding to list #1400

steeling opened this issue Jun 5, 2024 · 1 comment · Fixed by #1402
Labels
bug Something isn't working runtime Issues or PRs related to kcl runtime including value and value opertions

Comments

@steeling
Copy link

steeling commented Jun 5, 2024

kcl version
0.8.9-darwin-arm64

input:

schema x:
    m: [str] = ["hello"]

s = x {
}

t = s | {
    m += ["world"]
}

outputs

s:
  m:
  - hello
t:
  m:
  - hello
  - hello
  - world

expected:

s:
  m:
  - hello
t:
  m:
  - hello
  - world
@Peefy Peefy added bug Something isn't working runtime Issues or PRs related to kcl runtime including value and value opertions labels Jun 6, 2024
@Peefy
Copy link
Contributor

Peefy commented Jun 6, 2024

Good Catch! Thank you! fixed in #1402, will be released in the 0.9.0 stable version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working runtime Issues or PRs related to kcl runtime including value and value opertions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants