TypeScript/tests/baselines/reference/parserComputedPropertyName28.errors.txt

13 lines
780 B
Text
Raw Normal View History

2014-11-18 23:34:04 +01:00
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;
~~~
2014-11-18 23:34:04 +01:00
!!! error TS1166: Computed property names are not allowed in class property declarations.
[e2]: number
~~~~
2014-11-18 23:34:04 +01:00
!!! error TS1166: Computed property names are not allowed in class property declarations.
}