31 lines
1.2 KiB
Text
31 lines
1.2 KiB
Text
=== tests/cases/conformance/es6/Symbols/symbolProperty28.ts ===
|
|
class C1 {
|
|
>C1 : Symbol(C1, Decl(symbolProperty28.ts, 0, 0))
|
|
|
|
[Symbol.toStringTag]() {
|
|
>Symbol.toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.d.ts, 1278, 24))
|
|
>Symbol : Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1292, 11))
|
|
>toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.d.ts, 1278, 24))
|
|
|
|
return { x: "" };
|
|
>x : Symbol(x, Decl(symbolProperty28.ts, 2, 16))
|
|
}
|
|
}
|
|
|
|
class C2 extends C1 { }
|
|
>C2 : Symbol(C2, Decl(symbolProperty28.ts, 4, 1))
|
|
>C1 : Symbol(C1, Decl(symbolProperty28.ts, 0, 0))
|
|
|
|
var c: C2;
|
|
>c : Symbol(c, Decl(symbolProperty28.ts, 8, 3))
|
|
>C2 : Symbol(C2, Decl(symbolProperty28.ts, 4, 1))
|
|
|
|
var obj = c[Symbol.toStringTag]().x;
|
|
>obj : Symbol(obj, Decl(symbolProperty28.ts, 9, 3))
|
|
>c[Symbol.toStringTag]().x : Symbol(x, Decl(symbolProperty28.ts, 2, 16))
|
|
>c : Symbol(c, Decl(symbolProperty28.ts, 8, 3))
|
|
>Symbol.toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.d.ts, 1278, 24))
|
|
>Symbol : Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1292, 11))
|
|
>toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.d.ts, 1278, 24))
|
|
>x : Symbol(x, Decl(symbolProperty28.ts, 2, 16))
|
|
|