TypeScript/tests/baselines/reference/typeCheckObjectCreationExpressionWithUndefinedCallResolutionData.types

25 lines
683 B
Text
Raw Normal View History

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