2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/staticInstanceResolution3_1.ts ===
|
|
|
|
///<reference path='staticInstanceResolution3_0.ts'/>
|
|
|
|
import WinJS = require('staticInstanceResolution3_0');
|
2014-08-28 21:40:58 +02:00
|
|
|
>WinJS : typeof WinJS
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
WinJS.Promise.timeout(10);
|
2014-08-25 19:36:12 +02:00
|
|
|
>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
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
=== tests/cases/compiler/staticInstanceResolution3_0.ts ===
|
|
|
|
export class Promise {
|
|
|
|
>Promise : Promise
|
|
|
|
|
|
|
|
static timeout(delay: number): Promise {
|
2014-08-25 19:36:12 +02:00
|
|
|
>timeout : (delay: number) => Promise
|
2014-08-15 23:33:16 +02:00
|
|
|
>delay : number
|
|
|
|
>Promise : Promise
|
|
|
|
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|