2015-02-11 02:09:29 +01:00
|
|
|
=== tests/cases/compiler/server.ts ===
|
|
|
|
|
|
|
|
export interface I {
|
2015-04-13 23:01:57 +02:00
|
|
|
>I : I, Symbol(I, Decl(server.ts, 0, 0))
|
2015-02-11 02:09:29 +01:00
|
|
|
|
|
|
|
prop: string;
|
2015-04-13 23:01:57 +02:00
|
|
|
>prop : string, Symbol(prop, Decl(server.ts, 1, 20))
|
2015-02-11 02:09:29 +01:00
|
|
|
}
|
|
|
|
export interface I2 {
|
2015-04-13 23:01:57 +02:00
|
|
|
>I2 : I2, Symbol(I2, Decl(server.ts, 3, 1))
|
2015-02-11 02:09:29 +01:00
|
|
|
|
|
|
|
prop2: string;
|
2015-04-13 23:01:57 +02:00
|
|
|
>prop2 : string, Symbol(prop2, Decl(server.ts, 4, 21))
|
2015-02-11 02:09:29 +01:00
|
|
|
}
|
|
|
|
export class C implements I {
|
2015-04-13 23:01:57 +02:00
|
|
|
>C : C, Symbol(C, Decl(server.ts, 6, 1))
|
|
|
|
>I : I, Symbol(I, Decl(server.ts, 0, 0))
|
2015-02-11 02:09:29 +01:00
|
|
|
|
|
|
|
prop = "hello";
|
2015-04-13 23:01:57 +02:00
|
|
|
>prop : string, Symbol(prop, Decl(server.ts, 7, 29))
|
2015-04-13 21:36:11 +02:00
|
|
|
>"hello" : string
|
2015-02-11 02:09:29 +01:00
|
|
|
}
|
|
|
|
export class C2 implements I2 {
|
2015-04-13 23:01:57 +02:00
|
|
|
>C2 : C2, Symbol(C2, Decl(server.ts, 9, 1))
|
|
|
|
>I2 : I2, Symbol(I2, Decl(server.ts, 3, 1))
|
2015-02-11 02:09:29 +01:00
|
|
|
|
|
|
|
prop2 = "world";
|
2015-04-13 23:01:57 +02:00
|
|
|
>prop2 : string, Symbol(prop2, Decl(server.ts, 10, 31))
|
2015-04-13 21:36:11 +02:00
|
|
|
>"world" : string
|
2015-02-11 02:09:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
=== tests/cases/compiler/client.ts ===
|
|
|
|
import { C, I, C2 } from "server"; // Shouldnt emit I and C2 into the js file and emit C and I in .d.ts file
|
2015-04-13 23:01:57 +02:00
|
|
|
>C : typeof C, Symbol(C, Decl(client.ts, 0, 8))
|
|
|
|
>I : any, Symbol(I, Decl(client.ts, 0, 11))
|
|
|
|
>C2 : typeof C2, Symbol(C2, Decl(client.ts, 0, 14))
|
2015-02-11 02:09:29 +01:00
|
|
|
|
|
|
|
export type cValInterface = I;
|
2015-04-13 23:01:57 +02:00
|
|
|
>cValInterface : I, Symbol(cValInterface, Decl(client.ts, 0, 34))
|
|
|
|
>I : I, Symbol(I, Decl(client.ts, 0, 11))
|
2015-02-11 02:09:29 +01:00
|
|
|
|
|
|
|
export var cVal = new C();
|
2015-04-13 23:01:57 +02:00
|
|
|
>cVal : C, Symbol(cVal, Decl(client.ts, 2, 10))
|
2015-02-11 02:09:29 +01:00
|
|
|
>new C() : C
|
2015-04-13 23:01:57 +02:00
|
|
|
>C : typeof C, Symbol(C, Decl(client.ts, 0, 8))
|
2015-02-11 02:09:29 +01:00
|
|
|
|