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
Said test expects that it is a static warning (later it was an error) to have a return and a return e statement in the same function, with any return type.
That warning/error was eliminated (cf. dart-lang/sdk#39476 (comment)), and currently the relationship between the function return type and the return statement determines whether each return statement is an error, with no reference to the existence and shape of other return statements.
In this particular test the return type is dynamic, which means that neither return; nor return 1; is an error, so the expectation of the test should be adjusted accordingly.
There is at least one more test ('...t02') with a similar issue.
The text was updated successfully, but these errors were encountered:
eernstg
added
the
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
label
Nov 25, 2019
Said test expects that it is a static warning (later it was an error) to have a
return
and areturn e
statement in the same function, with any return type.That warning/error was eliminated (cf. dart-lang/sdk#39476 (comment)), and currently the relationship between the function return type and the return statement determines whether each return statement is an error, with no reference to the existence and shape of other return statements.
In this particular test the return type is
dynamic
, which means that neitherreturn;
norreturn 1;
is an error, so the expectation of the test should be adjusted accordingly.There is at least one more test ('...t02') with a similar issue.
The text was updated successfully, but these errors were encountered: