You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, accessing a property of type Mapping<TypeA, TypeB> or Listing<Type> will shallow-force the whole mapping/listing. The shallow-force gets skipped if the type is unknown or Any (e.g. Listing, or Listing<unknown>, or Listing<Any>).
This should not throw, but does currently:
hidden nums: Listing<Int> = new {
throw("uh oh")
1
}
result = nums[1]
This is just another example. The addition happens and we get 33 but at what point is the type checking meant to happen. Using the IntelliJ plugin I get warnings telling me I'm doing something stupid.
foo = new Listing<YamlRenderer> {
11
}
bar = new Listing<String> {
22
}
output {
value = foo[0] + bar[0]
renderer = new YamlRenderer{}
}
Currently, accessing a property of type
Mapping<TypeA, TypeB>
orListing<Type>
will shallow-force the whole mapping/listing. The shallow-force gets skipped if the type isunknown
orAny
(e.g.Listing
, orListing<unknown>
, orListing<Any>
).This should not throw, but does currently:
This is related to #405
The text was updated successfully, but these errors were encountered: