dart2js warns expression yield void, while DartEditor doesn't #15812
Labels
closed-obsolete
Closed as the reported issue is no longer relevant
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
web-dart2js
This issue was originally filed by @tomyeh
When compiling the following code, dart2js display a warning: Warning: Expression does not yield a value.
On the other hand, Dart Editor says nothing. No sure which is correct. Anyway, it is handy if allowed.
bool cond() => true;
void f1() {}
void f2() {}
void main() => cond() ? f1(): f2();
The text was updated successfully, but these errors were encountered: