2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/file2.ts ===
|
|
|
|
import f = require('file1');
|
2014-08-28 21:40:58 +02:00
|
|
|
>f : typeof f
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
f.foo();
|
|
|
|
>f.foo() : any
|
2014-08-28 21:52:44 +02:00
|
|
|
>f.foo : () => any
|
2014-08-25 19:36:12 +02:00
|
|
|
>f : typeof f
|
2014-08-28 21:52:44 +02:00
|
|
|
>foo : () => any
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
=== tests/cases/compiler/file1.ts ===
|
|
|
|
export function foo() {
|
2014-08-28 21:52:44 +02:00
|
|
|
>foo : () => any
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var classes = undefined;
|
|
|
|
>classes : any
|
|
|
|
>undefined : undefined
|
|
|
|
|
|
|
|
return new classes(null);
|
|
|
|
>new classes(null) : any
|
|
|
|
>classes : any
|
|
|
|
}
|
|
|
|
|