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

Side by Side Diff: pkg/kernel/testcases/strong-mode/void-methods.baseline.txt

Issue 2619193003: Insert implicit downcasts in kernel strong mode. (Closed)
Patch Set: Add missing status line Created 3 years, 11 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 // dynamic is not a subtype of dart.core::int (void-methods.dart:4:27) 1 // dynamic is not a subtype of dart.core::int (void-methods.dart:4:28)
2 library; 2 library;
3 import self as self; 3 import self as self;
4 import "dart:core" as core; 4 import "dart:core" as core;
5 5
6 class Foo extends core::Object { 6 class Foo extends core::Object {
7 field core::List<dynamic> list = <core::int>[1, 2, 3]; 7 field core::List<dynamic> list = <core::int>[1, 2, 3];
8 constructor •() → void 8 constructor •() → void
9 : super core::Object::•() 9 : super core::Object::•()
10 ; 10 ;
11 set first(dynamic x) → void 11 set first(dynamic x) → void
12 this.{self::Foo::list}.{core::List::[]=}(0, x); 12 this.{self::Foo::list}.{core::List::[]=}(0, x);
13 operator []=(dynamic x, dynamic y) → dynamic 13 operator []=(dynamic x, dynamic y) → dynamic
14 this.{self::Foo::list}.{core::List::[]=}(x, y); 14 this.{self::Foo::list}.{core::List::[]=}(x, y);
15 method clear() → void 15 method clear() → void
16 this.{self::Foo::list}.{core::List::clear}(); 16 this.{self::Foo::list}.{core::List::clear}();
17 } 17 }
18 static method main() → dynamic { 18 static method main() → dynamic {
19 new self::Foo::•().{self::Foo::first} = 4; 19 new self::Foo::•().{self::Foo::first} = 4;
20 new self::Foo::•().{self::Foo::[]=}(3, 4); 20 new self::Foo::•().{self::Foo::[]=}(3, 4);
21 new self::Foo::•().{self::Foo::clear}(); 21 new self::Foo::•().{self::Foo::clear}();
22 } 22 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698