2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/memberAccessMustUseModuleInstances_1.ts ===
|
|
|
|
///<reference path='memberAccessMustUseModuleInstances_0.ts'/>
|
|
|
|
import WinJS = require('memberAccessMustUseModuleInstances_0');
|
|
|
|
>WinJS : typeof "tests/cases/compiler/memberAccessMustUseModuleInstances_0"
|
|
|
|
|
|
|
|
WinJS.Promise.timeout(10);
|
|
|
|
>WinJS.Promise.timeout(10) : Promise
|
2014-08-22 03:39:46 +02:00
|
|
|
>WinJS.Promise.timeout : typeof timeout
|
2014-08-15 23:33:16 +02:00
|
|
|
>WinJS.Promise : typeof Promise
|
|
|
|
>WinJS : typeof "tests/cases/compiler/memberAccessMustUseModuleInstances_0"
|
|
|
|
>Promise : typeof Promise
|
2014-08-22 03:39:46 +02:00
|
|
|
>timeout : typeof timeout
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
=== tests/cases/compiler/memberAccessMustUseModuleInstances_0.ts ===
|
|
|
|
export class Promise {
|
|
|
|
>Promise : Promise
|
|
|
|
|
|
|
|
static timeout(delay: number): Promise {
|
2014-08-22 03:39:46 +02:00
|
|
|
>timeout : typeof timeout
|
2014-08-15 23:33:16 +02:00
|
|
|
>delay : number
|
|
|
|
>Promise : Promise
|
|
|
|
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|