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

Side by Side Diff: pkg/kernel/testcases/reify/simple_test.dart.expect

Issue 2713163002: Pass type arguments as a list in generic methods invocations (Closed)
Patch Set: Simplify 'isGenericMethod' procedure Created 3 years, 9 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 simple_test; 1 library simple_test;
2 import self as self; 2 import self as self;
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "../../runtime/reify/interceptors.dart" as int; 4 import "../../runtime/reify/interceptors.dart" as int;
5 import "../../runtime/reify/types.dart" as typ; 5 import "../../runtime/reify/types.dart" as typ;
6 import "./test_base.dart" as tes; 6 import "./test_base.dart" as tes;
7 import "../../runtime/reify/declarations.dart" as dec; 7 import "../../runtime/reify/declarations.dart" as dec;
8 8
9 class C extends core::Object implements int::HasRuntimeTypeGetter { 9 class C extends core::Object implements int::HasRuntimeTypeGetter {
10 constructor •() → void 10 constructor •() → void
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 tes::write(let dynamic #t3 = o in #t3 is int::HasRuntimeTypeGetter && #t3.$is$ C); 138 tes::write(let dynamic #t3 = o in #t3 is int::HasRuntimeTypeGetter && #t3.$is$ C);
139 tes::write(let dynamic #t4 = o in #t4 is int::HasRuntimeTypeGetter && #t4.$is$ D); 139 tes::write(let dynamic #t4 = o in #t4 is int::HasRuntimeTypeGetter && #t4.$is$ D);
140 } 140 }
141 static method testIsNot(dynamic o) → dynamic { 141 static method testIsNot(dynamic o) → dynamic {
142 tes::write(!(let dynamic #t5 = o in #t5 is int::HasRuntimeTypeGetter && #t5.$i s$A)); 142 tes::write(!(let dynamic #t5 = o in #t5 is int::HasRuntimeTypeGetter && #t5.$i s$A));
143 tes::write(!(let dynamic #t6 = o in #t6 is int::HasRuntimeTypeGetter && #t6.$i s$B)); 143 tes::write(!(let dynamic #t6 = o in #t6 is int::HasRuntimeTypeGetter && #t6.$i s$B));
144 tes::write(!(let dynamic #t7 = o in #t7 is int::HasRuntimeTypeGetter && #t7.$i s$C)); 144 tes::write(!(let dynamic #t7 = o in #t7 is int::HasRuntimeTypeGetter && #t7.$i s$C));
145 tes::write(!(let dynamic #t8 = o in #t8 is int::HasRuntimeTypeGetter && #t8.$i s$D)); 145 tes::write(!(let dynamic #t8 = o in #t8 is int::HasRuntimeTypeGetter && #t8.$i s$D));
146 } 146 }
147 static method main() → dynamic { 147 static method main() → dynamic {
148 dynamic objects = int::attachType(<dynamic>[new self::A::•(), new self::B::•() , new self::C::•(), new self::D::•()], new typ::Interface::•(self::$declarations .[](6), <dynamic>[const typ::Dynamic::•()])); 148 core::List<self::C> objects = int::attachType(<self::C>[new self::A::•(), new self::B::•(), new self::C::•(), new self::D::•()], new typ::Interface::•(self::$ declarations.[](6), <dynamic>[new typ::Interface::•(self::$declarations.[](0))]) );
149 objects.forEach(new self::Closure#testIs::•()); 149 objects.{core::Iterable::forEach}(new self::Closure#testIs::•());
150 objects.forEach(new self::Closure#testIsNot::•()); 150 objects.{core::Iterable::forEach}(new self::Closure#testIsNot::•());
151 tes::expectOutput("true\nfalse\ntrue\nfalse\nfalse\ntrue\ntrue\nfalse\nfalse\n false\ntrue\nfalse\nfalse\ntrue\ntrue\ntrue\nfalse\ntrue\nfalse\ntrue\ntrue\nfal se\nfalse\ntrue\ntrue\ntrue\nfalse\ntrue\ntrue\nfalse\nfalse\nfalse"); 151 tes::expectOutput("true\nfalse\ntrue\nfalse\nfalse\ntrue\ntrue\nfalse\nfalse\n false\ntrue\nfalse\nfalse\ntrue\ntrue\ntrue\nfalse\ntrue\nfalse\ntrue\ntrue\nfal se\nfalse\ntrue\ntrue\ntrue\nfalse\ntrue\ntrue\nfalse\nfalse\nfalse");
152 } 152 }
OLDNEW
« no previous file with comments | « pkg/kernel/testcases/reify/reuse_type_variables_test.dart.expect ('k') | pkg/kernel/testcases/reify/subclass_test.dart.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698