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