TypeScript/tests/baselines/reference/computedPropertyNames26_ES5.errors.txt
2015-03-16 14:28:29 -07:00

16 lines
535 B
Plaintext

tests/cases/conformance/es6/computedProperties/computedPropertyNames26_ES5.ts(8,12): error TS2466: 'super' cannot be referenced in a computed property name.
==== tests/cases/conformance/es6/computedProperties/computedPropertyNames26_ES5.ts (1 errors) ====
class Base {
bar() {
return 0;
}
}
class C extends Base {
[
{ [super.bar()]: 1 }[0]
~~~~~
!!! error TS2466: 'super' cannot be referenced in a computed property name.
]() { }
}