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