2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/staticInstanceResolution5_1.ts(1,24): error TS2307: Cannot find external module 'staticInstanceResolution5_0.ts'.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/staticInstanceResolution5_1.ts (1 errors) ====
|
|
|
|
import WinJS = require('staticInstanceResolution5_0.ts');
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2307: Cannot find external module 'staticInstanceResolution5_0.ts'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
// these 3 should be errors
|
|
|
|
var x = (w1: WinJS) => { };
|
|
|
|
var y = function (w2: WinJS) { }
|
|
|
|
function z(w3: WinJS) { }
|
|
|
|
|
|
|
|
==== tests/cases/compiler/staticInstanceResolution5_0.ts (0 errors) ====
|
|
|
|
export class Promise {
|
|
|
|
static timeout(delay: number): Promise {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|