2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/file2.ts ===
|
|
|
|
import f = require('file1');
|
2015-04-16 01:44:20 +02:00
|
|
|
>f : typeof f
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
f.foo();
|
|
|
|
>f.foo() : any
|
2015-04-16 01:44:20 +02:00
|
|
|
>f.foo : () => any
|
|
|
|
>f : typeof f
|
|
|
|
>foo : () => any
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
=== tests/cases/compiler/file1.ts ===
|
|
|
|
export function foo() {
|
2015-04-16 01:44:20 +02:00
|
|
|
>foo : () => any
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var classes = undefined;
|
2015-04-16 01:44:20 +02:00
|
|
|
>classes : any
|
|
|
|
>undefined : undefined
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
return new classes(null);
|
|
|
|
>new classes(null) : any
|
2015-04-16 01:44:20 +02:00
|
|
|
>classes : any
|
2015-04-13 21:36:11 +02:00
|
|
|
>null : null
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|