-
Notifications
You must be signed in to change notification settings - Fork 118
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
KCL lambda arguments type checking in the language server #1527
Comments
Could you help fix it? |
Also it seems broader than this @Peefy , what do you think of an idea if arguments are passed to functions their copies are are constructed using the actual argument type? Does this sound sane or maybe nonsense? |
I guess impossible due to union TA | TB types... |
No worries, I will refactor this and fix this issue. |
Hello there @Peefy, I'd like add more details, as I face runtime type checking failures, so it seems crucial. Let's suppose we have a mutate function:
I define a vmrule:
And get the runtime failure:
However, I just need to move the groups assignment out and runtime is operational. In other words:
This looks like kinda important error to me, smth is wrong with the type checking system and runtime. |
Yes, I've fixed the type unsoundness at compile time and runtime through these PRs |
Great, let's see then. Though unreleased yet? |
Yes, I expect to release v0.10.0-alpha version. |
Hello, there
it looks like an odd behavior:
I expect that the language server will be more informative regarding "hello", though it's not noticed, even CLI run provides meaningless error:
Related scenario (which works, but should not)
4. What is your KCL components version? (Required)
0.9.4
The text was updated successfully, but these errors were encountered: