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

Side by Side Diff: pkg/front_end/testcases/rasta/class_hierarchy.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 A extends core::Object { 5 class A extends core::Object {
6 constructor •() → void 6 constructor •() → self::A
7 : super core::Object::•() 7 : invalid-initializer;
8 ;
9 } 8 }
10 class B extends core::Object { 9 class B extends core::Object {
11 constructor •() → void 10 constructor •() → self::B
12 : super core::Object::•() 11 : invalid-initializer;
13 ;
14 } 12 }
15 class C extends core::Object { 13 class C extends core::Object {
16 constructor •() → void 14 constructor •() → dynamic
17 : super core::Object::•() 15 : invalid-initializer;
18 ;
19 } 16 }
20 class D extends core::Object { 17 class D extends core::Object {
21 static field dynamic _redirecting# = <dynamic>[self::D::•];
22 static factory •() → self::D 18 static factory •() → self::D
23 let dynamic #redirecting_factory = "Missing" in invalid-expression; 19 invalid-statement;
24 } 20 }
25 const field dynamic #errors = const <dynamic>["pkg/front_end/testcases/rasta/cla ss_hierarchy.dart:9:7: Error: The type 'Missing' can't be mixed in.\nclass C = O bject with Missing;\n ^", "pkg/front_end/testcases/rasta/class_hierarchy.da rt: Error: The type 'Missing' can't be used as supertype.", "pkg/front_end/testc ases/rasta/class_hierarchy.dart: Error: The type 'Missing' can't be used as supe rtype.", "pkg/front_end/testcases/rasta/class_hierarchy.dart: Error: The type 'M issing' can't be used as supertype.", "pkg/front_end/testcases/rasta/class_hiera rchy.dart: Error: The type 'Missing' can't be used as supertype."]/* from null * /;
26 static method main() → void { 21 static method main() → void {
27 new self::A::•(); 22 new self::A::•();
28 new self::B::•(); 23 new self::B::•();
29 new self::C::•(); 24 new self::C::•();
30 throw new core::NoSuchMethodError::_withType(null, #Missing, 32, <dynamic>[].t oList(growable: false), <dynamic, dynamic>{}, null); 25 invalid-expression.call();
31 } 26 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698