-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
frog doesn't report error/warning if returning value from void function #404
Comments
This comment was originally written by drfibonacci@google.com |
This appears to be fixed (at least, if "foo" is called): /Users/jmesserly/scratch/test.dart:2:10: warning: type "int" is not assignable to "void" I suspect this bug predates our checking of return types. Added Fixed label. |
This comment was originally written by mattsh@google.com Yes, works great now. |
This comment was originally written by mattsh@google.com Added Verified label. |
This is a bug on JSON.decode. This should match the hand fix in #404. R=jmesserly@google.com Review URL: https://codereview.chromium.org/1579223002 .
This issue was originally filed by mattsh@google.com
void foo() {
return 6;
}
gives no errors or warnings in frog.
The text was updated successfully, but these errors were encountered: