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

Side by Side Diff: pkg/front_end/testcases/runtime_checks/covariant_generic_parameter_tear_off.dart.strong.expect

Issue 2999403003: Properly annotate the checks needed when invoking function-typed objects. (Closed)
Patch Set: Created 3 years, 4 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
(Empty)
1 library test;
2 import self as self;
3 import "dart:core" as core;
4
5 typedef F<T extends core::Object> = (T) → void;
6 typedef G<T extends core::Object, U extends core::Object> = (T) → U;
7 class C<T extends core::Object> extends core::Object {
8 default constructor •() → void
9 : super core::Object::•()
10 ;
11 method f1(self::C::T x) → void {}
12 method f2(core::List<self::C::T> x) → self::C::T
13 return x.{core::Iterable::first};
14 }
15 static method g1(self::C<core::num> c) → (core::num) → void {
16 return c.{self::C::f1};
17 }
18 static method g2(self::C<core::int> c, core::Object x) → void {
19 (core::Object) → void f = self::g1(c) as (core::Object) → void;
20 f.call(x);
21 }
22 static method g3(self::C<core::num> c) → (core::List<core::num>) → core::num {
23 return c.{self::C::f2};
24 }
25 static method test() → void {
26 (core::num) → void x = self::g1(new self::C::•<core::int>());
27 x.call(1.5);
28 self::g3(new self::C::•<core::int>());
29 }
30 static method main() → dynamic {}
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart ('k') | pkg/front_end/testcases/strong.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698