54 lines
604 B
Text
54 lines
604 B
Text
|
=== tests/cases/compiler/moduleCodeGenTest5.ts ===
|
||
|
export var x = 0;
|
||
|
>x : number
|
||
|
|
||
|
var y = 0;
|
||
|
>y : number
|
||
|
|
||
|
export function f1() {}
|
||
|
>f1 : () => void
|
||
|
|
||
|
function f2() {}
|
||
|
>f2 : () => void
|
||
|
|
||
|
export class C1 {
|
||
|
>C1 : C1
|
||
|
|
||
|
public p1 = 0;
|
||
|
>p1 : number
|
||
|
|
||
|
public p2() {}
|
||
|
>p2 : () => void
|
||
|
}
|
||
|
class C2{
|
||
|
>C2 : C2
|
||
|
|
||
|
public p1 = 0;
|
||
|
>p1 : number
|
||
|
|
||
|
public p2() {}
|
||
|
>p2 : () => void
|
||
|
}
|
||
|
|
||
|
export enum E1 {A=0}
|
||
|
>E1 : E1
|
||
|
>A : E1
|
||
|
|
||
|
var u = E1.A;
|
||
|
>u : E1
|
||
|
>E1.A : E1
|
||
|
>E1 : typeof E1
|
||
|
>A : E1
|
||
|
|
||
|
enum E2 {B=0}
|
||
|
>E2 : E2
|
||
|
>B : E2
|
||
|
|
||
|
var v = E2.B;
|
||
|
>v : E2
|
||
|
>E2.B : E2
|
||
|
>E2 : typeof E2
|
||
|
>B : E2
|
||
|
|
||
|
|