Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(296)

Side by Side Diff: pkg/front_end/testcases/rasta/bad_redirection.dart.direct.expect

Issue 2953503002: Only set types of conditional expressions in strong mode. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 library; 1 library;
2 import self as self; 2 import self as self;
3 import "dart:core" as core; 3 import "dart:core" as core;
4 4
5 class Foo extends core::Object { 5 class Foo extends core::Object {
6 constructor •() → void 6 constructor •() → dynamic
7 : super core::Object::•() 7 : super core::Object::•()
8 const core::_ConstantExpressionError::•()._throw(new core::_CompileTimeError ::•("pkg/front_end/testcases/rasta/bad_redirection.dart:6:11: Error: Can't retur n from a constructor.\n Foo() = Bar;\n ^")); 8 invalid-statement;
9 } 9 }
10 class Bar extends self::Foo { 10 class Bar extends self::Foo {
11 static factory •() → self::Bar 11 static factory •() → self::Bar
12 return null; 12 return null;
13 } 13 }
14 const field dynamic #errors = const <dynamic>["pkg/front_end/testcases/rasta/bad _redirection.dart:6:9: Error: Expected a function body or '=>'.\n Foo() = Bar;\ n ^"]/* from null */;
15 static method main() → dynamic { 14 static method main() → dynamic {
16 new self::Foo::•(); 15 new self::Foo::•();
17 } 16 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698