2015-03-12 00:13:08 +01:00
|
|
|
=== tests/cases/conformance/es6/classDeclaration/emitClassDeclarationWithStaticPropertyAssignmentInES6.ts ===
|
|
|
|
class C {
|
2015-04-13 23:01:57 +02:00
|
|
|
>C : C, Symbol(C, Decl(emitClassDeclarationWithStaticPropertyAssignmentInES6.ts, 0, 0))
|
2015-03-12 00:13:08 +01:00
|
|
|
|
|
|
|
static z: string = "Foo";
|
2015-04-13 23:01:57 +02:00
|
|
|
>z : string, Symbol(C.z, Decl(emitClassDeclarationWithStaticPropertyAssignmentInES6.ts, 0, 9))
|
2015-04-13 21:36:11 +02:00
|
|
|
>"Foo" : string
|
2015-03-12 00:13:08 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
class D {
|
2015-04-13 23:01:57 +02:00
|
|
|
>D : D, Symbol(D, Decl(emitClassDeclarationWithStaticPropertyAssignmentInES6.ts, 2, 1))
|
2015-03-12 00:13:08 +01:00
|
|
|
|
|
|
|
x = 20000;
|
2015-04-13 23:01:57 +02:00
|
|
|
>x : number, Symbol(x, Decl(emitClassDeclarationWithStaticPropertyAssignmentInES6.ts, 4, 9))
|
2015-04-13 21:36:11 +02:00
|
|
|
>20000 : number
|
2015-03-12 00:13:08 +01:00
|
|
|
|
|
|
|
static b = true;
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : boolean, Symbol(D.b, Decl(emitClassDeclarationWithStaticPropertyAssignmentInES6.ts, 5, 14))
|
2015-04-13 21:36:11 +02:00
|
|
|
>true : boolean
|
2015-03-12 00:13:08 +01:00
|
|
|
}
|
|
|
|
|