28 lines
629 B
JavaScript
28 lines
629 B
JavaScript
|
//// [tests/cases/compiler/staticInstanceResolution5.ts] ////
|
||
|
|
||
|
//// [staticInstanceResolution5_0.ts]
|
||
|
export class Promise {
|
||
|
static timeout(delay: number): Promise {
|
||
|
return null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//// [staticInstanceResolution5_1.ts]
|
||
|
import WinJS = require('staticInstanceResolution5_0.ts');
|
||
|
|
||
|
// these 3 should be errors
|
||
|
var x = (w1: WinJS) => { };
|
||
|
var y = function (w2: WinJS) { }
|
||
|
function z(w3: WinJS) { }
|
||
|
|
||
|
|
||
|
//// [staticInstanceResolution5_1.js]
|
||
|
define(["require", "exports"], function (require, exports) {
|
||
|
var x = function (w1) {
|
||
|
};
|
||
|
var y = function (w2) {
|
||
|
};
|
||
|
function z(w3) {
|
||
|
}
|
||
|
});
|