OLD | NEW |
(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 }); |
OLD | NEW |