17 lines
No EOL
869 B
Text
17 lines
No EOL
869 B
Text
tests/cases/conformance/es6/Symbols/symbolProperty7.ts(2,5): error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol.
|
|
tests/cases/conformance/es6/Symbols/symbolProperty7.ts(3,5): error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol.
|
|
|
|
|
|
==== tests/cases/conformance/es6/Symbols/symbolProperty7.ts (2 errors) ====
|
|
class C {
|
|
[Symbol()] = 0;
|
|
~~~~~~~~~~
|
|
!!! error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol.
|
|
[Symbol()]: number;
|
|
~~~~~~~~~~
|
|
!!! error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol.
|
|
[Symbol()]() { }
|
|
get [Symbol()]() {
|
|
return 0;
|
|
}
|
|
} |