TypeScript/tests/baselines/reference/parserComputedPropertyName28.errors.txt
2014-11-25 16:09:03 -08:00

13 lines
780 B
Plaintext

tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName28.ts(2,5): error TS1166: Computed property names are not allowed in class property declarations.
tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName28.ts(3,5): error TS1166: Computed property names are not allowed in class property declarations.
==== tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName28.ts (2 errors) ====
class C {
[e]: number = 0;
~~~
!!! error TS1166: Computed property names are not allowed in class property declarations.
[e2]: number
~~~~
!!! error TS1166: Computed property names are not allowed in class property declarations.
}