| Index: frog/tests/leg/type_checker_test.dart
|
| diff --git a/frog/tests/leg/type_checker_test.dart b/frog/tests/leg/type_checker_test.dart
|
| index 5581929946e5d53762ca67ae38ed4ca85217baad..ffb9f01b0192af24918d712472e0992ed070ba87 100644
|
| --- a/frog/tests/leg/type_checker_test.dart
|
| +++ b/frog/tests/leg/type_checker_test.dart
|
| @@ -237,6 +237,8 @@ void testMethodInvocations() {
|
|
|
| /** Tests analysis of returns (not required by the specification). */
|
| void testControlFlow() {
|
| + analyzeTopLevel("void foo() { if (true) { return; } }");
|
| + analyzeTopLevel("foo() { if (true) { return; } }");
|
| analyzeTopLevel("int foo() { if (true) { return 1; } }",
|
| MessageKind.MAYBE_MISSING_RETURN);
|
| final bar =
|
|
|