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

Side by Side Diff: pkg/front_end/testcases/rasta/bad_setter_initializer.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 •() → void
7 : final dynamic #t1 = const core::_ConstantExpressionError::•()._throw(new c ore::_CompileTimeError::•("pkg/front_end/testcases/rasta/bad_setter_initializer. dart:6:15: Error: 'field' isn't an instance field of this class.\n C() : field = null;\n ^")) 7 : final dynamic #t1 = throw new core::_CompileTimeError::•("pkg/front_end/te st/fasta/rasta/bad_setter_initializer.dart:6:9: \u0027[31mError: Can't use field here.\u0027[0m"), super core::Object::•()
8 ; 8 ;
9 set field(dynamic value) → dynamic {} 9 set field(dynamic value) → dynamic {}
10 } 10 }
11 static method main() → dynamic { 11 static method main() → dynamic {
12 new self::C::•(); 12 new self::C::•();
13 } 13 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698