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
#11356 lead to a discussion which can be simplified to the following example:
classMain {
staticfunctionmain() {
[vartmp];
}
}
There are two interpretations here:
It should fail because the var tmp expression is Void, so we have Void in a value-place.
It should not fail because the array declaration itself is in a non-value place, which means its elements could be generated as a block instead.
The analyzer already interprets it as 2., but the typer currently emits the array declaration. It's easy to argue that it shouldn't, but I'm somewhat worried about trying to be too clever here. So it anyone has an opinion on this, please let me know!
The text was updated successfully, but these errors were encountered:
#11356 lead to a discussion which can be simplified to the following example:
There are two interpretations here:
var tmp
expression isVoid
, so we haveVoid
in a value-place.The analyzer already interprets it as 2., but the typer currently emits the array declaration. It's easy to argue that it shouldn't, but I'm somewhat worried about trying to be too clever here. So it anyone has an opinion on this, please let me know!
The text was updated successfully, but these errors were encountered: