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

Side by Side Diff: pkg/front_end/testcases/rasta/issue_000041.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 C extends core::Object { 5 class C extends core::Object {
6 constructor •() → void 6 constructor •() → self::C
7 : super core::Object::•() 7 : super core::Object::•();
8 ;
9 method test() → dynamic { 8 method test() → dynamic {
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 ^"))); 9 self::use(invalid-expression);
11 } 10 }
12 } 11 }
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 */;
14 static method use(dynamic _) → dynamic 12 static method use(dynamic _) → dynamic
15 return null; 13 return null;
16 static method main() → dynamic { 14 static method main() → dynamic {
17 new self::C::•().test(); 15 new self::C::•().test();
18 } 16 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698