TypeScript/tests/baselines/reference/es6ImportDefaultBindingDts.types

21 lines
740 B
Plaintext
Raw Normal View History

=== tests/cases/compiler/server.ts ===
class c { }
2015-04-13 23:01:57 +02:00
>c : c, Symbol(c, Decl(server.ts, 0, 0))
export default c;
2015-04-13 23:01:57 +02:00
>c : c, Symbol(c, Decl(server.ts, 0, 0))
=== tests/cases/compiler/client.ts ===
import defaultBinding from "server";
2015-04-13 23:01:57 +02:00
>defaultBinding : typeof defaultBinding, Symbol(defaultBinding, Decl(client.ts, 0, 6))
export var x = new defaultBinding();
2015-04-13 23:01:57 +02:00
>x : defaultBinding, Symbol(x, Decl(client.ts, 1, 10))
>new defaultBinding() : defaultBinding
2015-04-13 23:01:57 +02:00
>defaultBinding : typeof defaultBinding, Symbol(defaultBinding, Decl(client.ts, 0, 6))
import defaultBinding2 from "server"; // elide this import since defaultBinding2 is not used
2015-04-13 23:01:57 +02:00
>defaultBinding2 : typeof defaultBinding, Symbol(defaultBinding2, Decl(client.ts, 2, 6))