14 lines
485 B
Plaintext
14 lines
485 B
Plaintext
tests/cases/conformance/es6/computedProperties/computedPropertyNames23.ts(6,12): error TS2465: 'this' cannot be referenced in a computed property name.
|
|
|
|
|
|
==== tests/cases/conformance/es6/computedProperties/computedPropertyNames23.ts (1 errors) ====
|
|
class C {
|
|
bar() {
|
|
return 0;
|
|
}
|
|
[
|
|
{ [this.bar()]: 1 }[0]
|
|
~~~~
|
|
!!! error TS2465: 'this' cannot be referenced in a computed property name.
|
|
]() { }
|
|
} |