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

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

Issue 2756693002: Add generic-methods 'golden' tests for 'reify' transformation (Closed)
Patch Set: Mark tests with Crash/Fail in reify.status instead of excluding 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
(Empty)
1 library generic_methods_simple_as_expression_test;
2 import self as self;
3 import "dart:core" as core;
4 import "../../runtime/reify/types.dart" as typ;
5 import "./test_base.dart" as tes;
6 import "../../runtime/reify/declarations.dart" as dec;
7
8 static final field core::List<dec::Class> $declarations = (core::List<dec::Class > d) → core::List<dec::Class> {
9 dec::init(d, 0, new typ::Interface::•(d.[](14)), <dynamic>[new typ::Interface: :•(d.[](15), <dynamic>[new typ::Interface::•(d.[](0))])]);
10 dec::init(d, 1, new typ::Interface::•(d.[](14)));
11 dec::init(d, 2, new typ::Interface::•(d.[](14)));
12 dec::init(d, 3, new typ::Interface::•(d.[](14)), <dynamic>[new typ::Interface: :•(d.[](15), <dynamic>[new typ::Interface::•(d.[](3))]), new typ::Interface::•(d .[](16))]);
13 dec::init(d, 4, new typ::Interface::•(d.[](0)));
14 dec::init(d, 5, new typ::Interface::•(d.[](0)));
15 dec::init(d, 6, new typ::Interface::•(d.[](14)));
16 dec::init(d, 7, new typ::Interface::•(d.[](17)));
17 dec::init(d, 8, new typ::Interface::•(d.[](17)));
18 dec::init(d, 9, new typ::Interface::•(d.[](17)));
19 dec::init(d, 10, new typ::Interface::•(d.[](17)));
20 dec::init(d, 11, new typ::Interface::•(d.[](14)), <dynamic>[new typ::Interface ::•(d.[](18))]);
21 dec::init(d, 12, new typ::Interface::•(d.[](13)));
22 dec::init(d, 13, new typ::Interface::•(d.[](17)));
23 dec::init(d, 14, null);
24 dec::init(d, 15, new typ::Interface::•(d.[](14)));
25 dec::init(d, 16, new typ::Interface::•(d.[](14)));
26 dec::init(d, 17, new typ::Interface::•(d.[](14)));
27 dec::init(d, 18, new typ::Interface::•(d.[](14)));
28 return d;
29 }.call(dec::allocateDeclarations(<dynamic>["num", "Null", "bool", "String", "int ", "double", "Type", "AbstractClassInstantiationError", "NoSuchMethodError", "Cy clicInitializationError", "UnsupportedError", "IntegerDivisionByZeroException", "RangeError", "ArgumentError", "Object", "Comparable", "Pattern", "Error", "Exce ption"], <dynamic>[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0]));
30 static method cast(dynamic obj, {core::List<typ::ReifiedType> $typeParameters}) → dynamic {
31 return obj as dynamic;
32 }
33 static method main() → dynamic {
34 tes::expectTrue(self::cast(42, $typeParameters: <typ::ReifiedType>[new typ::In terface::•(self::$declarations.[](0))]).{core::num::==}(42));
35 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698