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

Side by Side Diff: pkg/front_end/testcases/rasta/bad_implicit_super_constructor.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 •(dynamic x) → dynamic 6 constructor •(dynamic x) → void
7 : invalid-initializer, super core::Object::•() 7 : final dynamic #t1 = const core::_ConstantExpressionError::•()._throw(new c ore::_CompileTimeError::•("pkg/front_end/testcases/rasta/bad_implicit_super_cons tructor.dart:6:10: Error: 'x' isn't an instance field of this class.\n A(this.x );\n ^"))
8 ; 8 ;
9 } 9 }
10 class B extends self::A { 10 class B extends self::A {
11 const constructor •() → dynamic 11 const constructor •() → void
12 : invalid-initializer 12 : final dynamic #t2 = const core::_ConstantExpressionError::•()._throw(new c ore::_CompileTimeError::•("pkg/front_end/testcases/rasta/bad_implicit_super_cons tructor.dart:10:9: Error: The unnamed constructor in 'A' requires arguments.\n const B();\n ^"))
13 ; 13 ;
14 } 14 }
15 static method main() → dynamic { 15 static method main() → dynamic {
16 new self::B::•(); 16 new self::B::•();
17 const self::B::•(); 17 const self::B::•();
18 } 18 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698