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

Side by Side Diff: test/codegen_expected/language/inline_super_test.js

Issue 2234343003: fix #620, infer the input files from sources (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: fix 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 unified diff | Download patch
OLDNEW
1 //FAILED TO COMPILE 1 dart_library.library('language/inline_super_test', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__inline_super_test(exports, dart_sdk, expect) {
5 'use strict';
6 const core = dart_sdk.core;
7 const dart = dart_sdk.dart;
8 const dartx = dart_sdk.dartx;
9 const expect$ = expect.expect;
10 const inline_super_test = Object.create(null);
11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
12 inline_super_test.Percept = class Percept extends core.Object {};
13 inline_super_test.Actor = class Actor extends core.Object {
14 new(percept) {
15 this.percept = percept;
16 }
17 };
18 dart.setSignature(inline_super_test.Actor, {
19 constructors: () => ({new: dart.definiteFunctionType(inline_super_test.Actor , [dart.dynamic])})
20 });
21 inline_super_test.LivingActor = class LivingActor extends inline_super_test.Ac tor {
22 new() {
23 super.new(new inline_super_test.Percept());
24 }
25 };
26 dart.setSignature(inline_super_test.LivingActor, {
27 constructors: () => ({new: dart.definiteFunctionType(inline_super_test.Livin gActor, [])})
28 });
29 inline_super_test.main = function() {
30 expect$.Expect.isTrue(inline_super_test.Percept.is(new inline_super_test.Pla yer().percept));
31 };
32 dart.fn(inline_super_test.main, VoidTodynamic());
33 inline_super_test.Player = class Player extends inline_super_test.LivingActor {
34 new() {
35 super.new();
36 }
37 };
38 dart.setSignature(inline_super_test.Player, {
39 constructors: () => ({new: dart.definiteFunctionType(inline_super_test.Playe r, [])})
40 });
41 // Exports:
42 exports.inline_super_test = inline_super_test;
43 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698