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

Side by Side Diff: test/codegen/expect/language/issue14014_test.js

Issue 2128353002: Check in codegen test expectations. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 5 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 dart_library.library('language/issue14014_test', null, /* Imports */[
2 'dart_sdk'
3 ], function load__issue14014_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 issue14014_test = Object.create(null);
9 let A = () => (A = dart.constFn(issue14014_test.A$()))();
10 let B = () => (B = dart.constFn(issue14014_test.B$()))();
11 let BOfint = () => (BOfint = dart.constFn(issue14014_test.B$(core.int)))();
12 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
13 issue14014_test.A$ = dart.generic(T => {
14 class A extends core.Object {
15 new(f) {
16 }
17 }
18 dart.addTypeTests(A);
19 dart.setSignature(A, {
20 constructors: () => ({new: dart.definiteFunctionType(issue14014_test.A$(T) , [dart.dynamic])})
21 });
22 return A;
23 });
24 issue14014_test.A = A();
25 issue14014_test.B$ = dart.generic(T => {
26 let TToint = () => (TToint = dart.constFn(dart.definiteFunctionType(core.int , [T])))();
27 class B extends issue14014_test.A$(T) {
28 new() {
29 super.new(dart.fn(param => 42, TToint()));
30 }
31 }
32 dart.setSignature(B, {
33 constructors: () => ({new: dart.definiteFunctionType(issue14014_test.B$(T) , [])})
34 });
35 return B;
36 });
37 issue14014_test.B = B();
38 issue14014_test.main = function() {
39 let t = new (BOfint())();
40 };
41 dart.fn(issue14014_test.main, VoidTodynamic());
42 // Exports:
43 exports.issue14014_test = issue14014_test;
44 });
OLDNEW
« no previous file with comments | « test/codegen/expect/language/issue14014_3_test.js ('k') | test/codegen/expect/language/issue14242_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698