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

Side by Side Diff: test/codegen_expected/language/private2_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/private2_test', null, /* Imports */[
2 'dart_sdk'
3 ], function load__private2_test(exports, dart_sdk) {
4 'use strict';
5 const core = dart_sdk.core;
6 const dart = dart_sdk.dart;
7 const dartx = dart_sdk.dartx;
8 const private2_test = Object.create(null);
9 const private2_lib = Object.create(null);
10 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
11 const _f = Symbol('_f');
12 private2_test.A = class A extends core.Object {
13 new() {
14 this[_f] = 42;
15 this.g = 43;
16 }
17 };
18 dart.setSignature(private2_test.A, {
19 constructors: () => ({new: dart.definiteFunctionType(private2_test.A, [])})
20 });
21 private2_lib.B = class B extends private2_test.A {
22 new() {
23 super.new();
24 }
25 };
26 dart.setSignature(private2_lib.B, {
27 constructors: () => ({new: dart.definiteFunctionType(private2_lib.B, [])})
28 });
29 private2_test.C = class C extends private2_lib.B {
30 new() {
31 super.new();
32 }
33 };
34 dart.setSignature(private2_test.C, {
35 constructors: () => ({new: dart.definiteFunctionType(private2_test.C, [])})
36 });
37 private2_test.main = function() {
38 let a = new private2_test.A();
39 core.print(a.g);
40 core.print(a[_f]);
41 let o = new private2_test.C();
42 core.print(o.g);
43 core.print(o[_f]);
44 };
45 dart.fn(private2_test.main, VoidTodynamic());
46 // Exports:
47 exports.private2_test = private2_test;
48 exports.private2_lib = private2_lib;
49 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698