1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
|
=== tests/cases/compiler/main.ts ===
/// <reference path="d.d.ts"/>
import {A} from "./a";
>A : typeof A
import "D";
import "e";
let a: A;
>a : A
let b = a.getB().x.toFixed();
>b : string
>a.getB().x.toFixed() : string
>a.getB().x.toFixed : (fractionDigits?: number) => string
>a.getB().x : number
>a.getB() : import("tests/cases/compiler/b").B
>a.getB : () => import("tests/cases/compiler/b").B
>a : A
>getB : () => import("tests/cases/compiler/b").B
>x : number
>toFixed : (fractionDigits?: number) => string
let c = a.getCls().y.toLowerCase();
>c : string
>a.getCls().y.toLowerCase() : string
>a.getCls().y.toLowerCase : () => string
>a.getCls().y : string
>a.getCls() : import("C").Cls
>a.getCls : () => import("C").Cls
>a : A
>getCls : () => import("C").Cls
>y : string
>toLowerCase : () => string
=== tests/cases/compiler/a.ts ===
export class A {}
>A : A
=== tests/cases/compiler/b.ts ===
export class B {x: number;}
>B : B
>x : number
=== tests/cases/compiler/c.d.ts ===
declare module "C" {
>"C" : typeof import("C")
class Cls {y: string; }
>Cls : Cls
>y : string
}
=== tests/cases/compiler/d.d.ts ===
declare module "D" {
>"D" : typeof import("D")
import {A} from "a";
>A : typeof A
import {B} from "b";
>B : typeof B
module "a" {
>"a" : typeof import("tests/cases/compiler/a")
interface A {
getB(): B;
>getB : () => B
}
}
}
=== tests/cases/compiler/e.ts ===
/// <reference path="c.d.ts"/>
import {A} from "./a";
>A : typeof A
import {Cls} from "C";
>Cls : typeof Cls
A.prototype.getCls = function () { return undefined; }
>A.prototype.getCls = function () { return undefined; } : () => any
>A.prototype.getCls : () => Cls
>A.prototype : A
>A : typeof A
>prototype : A
>getCls : () => Cls
>function () { return undefined; } : () => any
>undefined : undefined
declare module "./a" {
>"./a" : typeof import("tests/cases/compiler/a")
interface A {
getCls(): Cls;
>getCls : () => Cls
}
}
|