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

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

Issue 2949753002: Print static types of conditional expressions. (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 •() → self::A 6 constructor •() → void
7 : invalid-initializer; 7 : super core::Object::•()
8 ;
8 } 9 }
9 class B extends core::Object { 10 class B extends core::Object {
10 constructor •() → self::B 11 constructor •() → void
11 : invalid-initializer; 12 : super core::Object::•()
13 ;
12 } 14 }
13 class C extends core::Object { 15 class C extends core::Object {
14 constructor •() → dynamic 16 constructor •() → void
15 : invalid-initializer; 17 : super core::Object::•()
18 ;
16 } 19 }
17 class D extends core::Object { 20 class D extends core::Object {
21 static field dynamic _redirecting# = <dynamic>[self::D::•];
18 static factory •() → self::D 22 static factory •() → self::D
19 invalid-statement; 23 let dynamic #redirecting_factory = "Missing" in invalid-expression;
20 } 24 }
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 * /;
21 static method main() → void { 26 static method main() → void {
22 new self::A::•(); 27 new self::A::•();
23 new self::B::•(); 28 new self::B::•();
24 new self::C::•(); 29 new self::C::•();
25 invalid-expression.call(); 30 throw new core::NoSuchMethodError::_withType(null, #Missing, 32, <dynamic>[].t oList(growable: false), <dynamic, dynamic>{}, null);
26 } 31 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698