22 lines
856 B
Text
22 lines
856 B
Text
=== tests/cases/conformance/es6/Symbols/symbolProperty23.ts ===
|
|
interface I {
|
|
>I : Symbol(I, Decl(symbolProperty23.ts, 0, 0))
|
|
|
|
[Symbol.toPrimitive]: () => boolean;
|
|
>Symbol.toPrimitive : Symbol(SymbolConstructor.toPrimitive, Decl(lib.d.ts, 1272, 18))
|
|
>Symbol : Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1292, 11))
|
|
>toPrimitive : Symbol(SymbolConstructor.toPrimitive, Decl(lib.d.ts, 1272, 18))
|
|
}
|
|
|
|
class C implements I {
|
|
>C : Symbol(C, Decl(symbolProperty23.ts, 2, 1))
|
|
>I : Symbol(I, Decl(symbolProperty23.ts, 0, 0))
|
|
|
|
[Symbol.toPrimitive]() {
|
|
>Symbol.toPrimitive : Symbol(SymbolConstructor.toPrimitive, Decl(lib.d.ts, 1272, 18))
|
|
>Symbol : Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1292, 11))
|
|
>toPrimitive : Symbol(SymbolConstructor.toPrimitive, Decl(lib.d.ts, 1272, 18))
|
|
|
|
return true;
|
|
}
|
|
}
|