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

Side by Side Diff: pkg/front_end/testcases/rasta/issue_000041.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 C extends core::Object { 5 class C extends core::Object {
6 constructor •() → self::C 6 constructor •() → void
7 : super core::Object::•(); 7 : super core::Object::•()
8 ;
8 method test() → dynamic { 9 method test() → dynamic {
9 self::use(invalid-expression); 10 self::use(const core::_ConstantExpressionError::•()._throw(new core::_Compil eTimeError::•("pkg/front_end/testcases/rasta/issue_000041.dart:7:10: Error: Can' t use `super` as an expression.\n use(+super);\n ^")));
10 } 11 }
11 } 12 }
13 const field dynamic #errors = const <dynamic>["pkg/front_end/testcases/rasta/iss ue_000041.dart:7:9: Error: '+' is not a prefix operator. \n use(+super);\n ^"]/* from null */;
12 static method use(dynamic _) → dynamic 14 static method use(dynamic _) → dynamic
13 return null; 15 return null;
14 static method main() → dynamic { 16 static method main() → dynamic {
15 new self::C::•().test(); 17 new self::C::•().test();
16 } 18 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698