2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/file2.ts ===
|
|
|
|
import f = require('file1');
|
2014-08-25 19:36:12 +02:00
|
|
|
>f : f
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
f.foo();
|
|
|
|
>f.foo() : any
|
2014-08-25 19:36:12 +02:00
|
|
|
>f.foo : typeof f.foo
|
|
|
|
>f : typeof f
|
|
|
|
>foo : typeof f.foo
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
=== tests/cases/compiler/file1.ts ===
|
|
|
|
export function foo() {
|
2014-08-22 03:39:46 +02:00
|
|
|
>foo : typeof foo
|
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
|
|
|
|
}
|
|
|
|
|