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 the analyzer rejects terminators in value-places:
classMain {
staticfunctionmain() {}
staticfunctiontest1() {
var__return=function(x:Dynamic) { return1; }
__return(thrownull); // Cannot use this expression as value
}
staticfunctiontest2() {
var__return=function(x:Dynamic) { return1; }
__return(returnnull); // Cannot use this expression as value
}
staticfunctiontest3() {
var__return=function(x:Dynamic) { return1; }
while (true) {
__return(break); // Cannot use this expression as value
}
}
staticfunctiontest4() {
var__return=function(x:Dynamic) { return1; }
while (true) {
__return(continue); // Cannot use this expression as value
}
}
}
Instead of erroring we can simply add them as a block-element.
The text was updated successfully, but these errors were encountered:
Currently the analyzer rejects terminators in value-places:
Instead of erroring we can simply add them as a block-element.
The text was updated successfully, but these errors were encountered: