Closed bozaro closed 3 months ago
Hello @bozaro
I guess you mean expecting to see runtime type checking errors instead of getting the correct YAML output, right? I will improve it later. Thank you very much for your detailed information.
A very unexpected fix...
I tried to figure out this problem on my own and got to the following:
as
operator receives the object type name and, if the type is declared in the same package, its short name as input;SchemaType
.I was unable to find the place where AST SchemaType
became to the short type name for the execution tree.
I expected that in the execution tree, the full type name would be input for the as
operator...
Hello @bozaro Sorry, I didn't understand what you meant. Are you saying that I made the wrong fix? Can you provide some specific examples?
Bug Report
Runtime type check can ignore type package name
1. Minimal reproduce step (Required)
Run script:
2. What did you expect to see? (Required)
All configuration evaluated succesfully:
3. What did you see instead (Required)
Runtime error check failure:
base.A
andchild.A
is not subtypes/aliases ofmain.A
andbase.A
is not subtype/alias ofchild.A
;A
required fieldmain
inbase.A
andchild.A
objects.4. What is your KCL components version? (Required)
Checked on: