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

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

Issue 3000353002: Start implementing logic for determining when formal parameters need type checks. (Closed)
Patch Set: Created 3 years, 3 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 class C<T extends core::Object> extends core::Object {
6 default constructor •() → void
7 : super core::Object::•()
8 ;
9 method f(self::C::T x) → void {}
10 }
11 static method g1(self::C<core::num> c) → void {
12 c.{self::C::f}(1.5);
13 }
14 static method g2(self::C<core::int> c) → void {
15 c.{self::C::f}(1);
16 }
17 static method g3(self::C<core::num> c) → void {
18 c.{self::C::f}(null);
19 }
20 static method main() → dynamic {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698