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