28 lines
763 B
Text
28 lines
763 B
Text
=== tests/cases/compiler/staticInstanceResolution3_1.ts ===
|
|
///<reference path='staticInstanceResolution3_0.ts'/>
|
|
import WinJS = require('staticInstanceResolution3_0');
|
|
>WinJS : typeof WinJS
|
|
|
|
WinJS.Promise.timeout(10);
|
|
>WinJS.Promise.timeout(10) : WinJS.Promise
|
|
>WinJS.Promise.timeout : (delay: number) => WinJS.Promise
|
|
>WinJS.Promise : typeof WinJS.Promise
|
|
>WinJS : typeof WinJS
|
|
>Promise : typeof WinJS.Promise
|
|
>timeout : (delay: number) => WinJS.Promise
|
|
>10 : number
|
|
|
|
=== tests/cases/compiler/staticInstanceResolution3_0.ts ===
|
|
export class Promise {
|
|
>Promise : Promise
|
|
|
|
static timeout(delay: number): Promise {
|
|
>timeout : (delay: number) => Promise
|
|
>delay : number
|
|
>Promise : Promise
|
|
|
|
return null;
|
|
>null : null
|
|
}
|
|
}
|
|
|