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

Side by Side Diff: pkg/front_end/testcases/runtime_checks/covariant_keyword.dart.direct.expect

Issue 3002893002: Begin writing tests of the runtime checks needed for Dart 2.0 soundness. (Closed)
Patch Set: Add more annotations to the "checks" category 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) → dynamic;
6 class C extends core::Object {
7 default constructor •() → void
8 : super core::Object::•()
9 ;
10 method f(core::num x) → void {}
11 }
12 class D extends self::C {
13 default constructor •() → void
14 : super self::C::•()
15 ;
16 method f(core::int x) → void {}
17 }
18 class E extends self::D {
19 default constructor •() → void
20 : super self::D::•()
21 ;
22 method f(core::int x) → void {}
23 }
24 static method g1(self::C c) → void {
25 c.f(1.5);
26 }
27 static method g2(self::C c) → (core::num) → dynamic {
28 return c.f;
29 }
30 static method test() → dynamic {
31 self::g1(new self::D::•());
32 (core::num) → dynamic x = self::g2(new self::D::•());
33 }
34 static method main() → dynamic {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698