22 lines
335 B
Text
22 lines
335 B
Text
=== tests/cases/conformance/es6/Symbols/symbolProperty1.ts ===
|
|
var s: symbol;
|
|
>s : symbol
|
|
|
|
var x = {
|
|
>x : {}
|
|
>{ [s]: 0, [s]() { }, get [s]() { return 0; }} : {}
|
|
|
|
[s]: 0,
|
|
>s : symbol
|
|
>0 : number
|
|
|
|
[s]() { },
|
|
>s : symbol
|
|
|
|
get [s]() {
|
|
>s : symbol
|
|
|
|
return 0;
|
|
>0 : number
|
|
}
|
|
}
|