mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
33 lines
745 B
Plaintext
33 lines
745 B
Plaintext
//// [tests/cases/compiler/accessorsEmit.ts] ////
|
|
|
|
=== accessorsEmit.ts ===
|
|
class Result { }
|
|
>Result : Symbol(Result, Decl(accessorsEmit.ts, 0, 0))
|
|
|
|
class Test {
|
|
>Test : Symbol(Test, Decl(accessorsEmit.ts, 0, 16))
|
|
|
|
get Property(): Result {
|
|
>Property : Symbol(Test.Property, Decl(accessorsEmit.ts, 2, 12))
|
|
>Result : Symbol(Result, Decl(accessorsEmit.ts, 0, 0))
|
|
|
|
var x = 1;
|
|
>x : Symbol(x, Decl(accessorsEmit.ts, 4, 11))
|
|
|
|
return null;
|
|
}
|
|
}
|
|
|
|
class Test2 {
|
|
>Test2 : Symbol(Test2, Decl(accessorsEmit.ts, 7, 1))
|
|
|
|
get Property() {
|
|
>Property : Symbol(Test2.Property, Decl(accessorsEmit.ts, 9, 13))
|
|
|
|
var x = 1;
|
|
>x : Symbol(x, Decl(accessorsEmit.ts, 11, 11))
|
|
|
|
return null;
|
|
}
|
|
}
|