Chromium Code Reviews| 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..72696a225a12d5213ff27bc7c34b952acc82400b 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("var foo() { if (true) { return; } }"); |
|
ngeoffray
2012/05/09 08:54:40
var -> Dynamic. var at this position is not allowe
karlklose
2012/05/09 10:32:41
Done, removed type.
|
| analyzeTopLevel("int foo() { if (true) { return 1; } }", |
| MessageKind.MAYBE_MISSING_RETURN); |
| final bar = |