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

Unified Diff: test/codegen_expected/language/recursive_inheritance_test.js

Issue 2214263005: Mark recursive_inheritance_test as passing (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Bumped pubspec Created 4 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 side-by-side diff with in-line comments
Download patch
Index: test/codegen_expected/language/recursive_inheritance_test.js
diff --git a/test/codegen_expected/language/recursive_inheritance_test.js b/test/codegen_expected/language/recursive_inheritance_test.js
index 0c6a6854ae66ffc3bb4d224622bd6d0fb857cb23..877005f6c8b375d956385297e987042ff45e1c44 100644
--- a/test/codegen_expected/language/recursive_inheritance_test.js
+++ b/test/codegen_expected/language/recursive_inheritance_test.js
@@ -1 +1,48 @@
-//FAILED TO COMPILE
+dart_library.library('language/recursive_inheritance_test', null, /* Imports */[
+ 'dart_sdk',
+ 'expect'
+], function load__recursive_inheritance_test(exports, dart_sdk, expect) {
+ 'use strict';
+ const core = dart_sdk.core;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const expect$ = expect.expect;
+ const recursive_inheritance_test = Object.create(null);
+ let Comparable = () => (Comparable = dart.constFn(recursive_inheritance_test.Comparable$()))();
+ let MI = () => (MI = dart.constFn(recursive_inheritance_test.MI$()))();
+ let PMI = () => (PMI = dart.constFn(recursive_inheritance_test.PMI$()))();
+ let MIOfMI = () => (MIOfMI = dart.constFn(recursive_inheritance_test.MI$(recursive_inheritance_test.MI)))();
+ let PMIOfComparable = () => (PMIOfComparable = dart.constFn(recursive_inheritance_test.PMI$(recursive_inheritance_test.Comparable)))();
+ let MIOfPMIOfComparable = () => (MIOfPMIOfComparable = dart.constFn(recursive_inheritance_test.MI$(PMIOfComparable())))();
+ let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [])))();
+ recursive_inheritance_test.Comparable$ = dart.generic(T => {
+ class Comparable extends core.Object {}
+ dart.addTypeTests(Comparable);
+ return Comparable;
+ });
+ recursive_inheritance_test.Comparable = Comparable();
+ recursive_inheritance_test.MI$ = dart.generic(T => {
+ class MI extends core.Object {}
+ dart.addTypeTests(MI);
+ return MI;
+ });
+ recursive_inheritance_test.MI = MI();
+ recursive_inheritance_test.PMI$ = dart.generic(T => {
+ class PMI extends recursive_inheritance_test.MI {}
+ dart.setBaseClass(PMI, recursive_inheritance_test.MI$(PMI));
+ return PMI;
+ });
+ recursive_inheritance_test.PMI = PMI();
+ recursive_inheritance_test.main = function() {
+ let a = new (MIOfMI())();
+ let b = new (PMIOfComparable())();
+ a = b;
+ expect$.Expect.isTrue(MIOfMI().is(a));
+ expect$.Expect.isTrue(PMIOfComparable().is(b));
+ expect$.Expect.isTrue(MIOfMI().is(b));
+ expect$.Expect.isTrue(MIOfPMIOfComparable().is(b));
+ };
+ dart.fn(recursive_inheritance_test.main, VoidTovoid());
+ // Exports:
+ exports.recursive_inheritance_test = recursive_inheritance_test;
+});
« no previous file with comments | « test/codegen_expected/language/range_analysis2_test.js ('k') | test/codegen_expected/language/regress_21016_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698