35 lines
624 B
Text
35 lines
624 B
Text
|
=== tests/cases/conformance/expressions/superPropertyAccess/superSymbolIndexedAccess1.ts ===
|
||
|
var symbol = Symbol.for('myThing');
|
||
|
>symbol : symbol
|
||
|
>Symbol.for('myThing') : symbol
|
||
|
>Symbol.for : (key: string) => symbol
|
||
|
>Symbol : SymbolConstructor
|
||
|
>for : (key: string) => symbol
|
||
|
>'myThing' : string
|
||
|
|
||
|
class Foo {
|
||
|
>Foo : Foo
|
||
|
|
||
|
[symbol]() {
|
||
|
>symbol : symbol
|
||
|
|
||
|
return 0;
|
||
|
>0 : number
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class Bar extends Foo {
|
||
|
>Bar : Bar
|
||
|
>Foo : Foo
|
||
|
|
||
|
[symbol]() {
|
||
|
>symbol : symbol
|
||
|
|
||
|
return super[symbol]();
|
||
|
>super[symbol]() : any
|
||
|
>super[symbol] : any
|
||
|
>super : Foo
|
||
|
>symbol : symbol
|
||
|
}
|
||
|
}
|