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

19 lines
1.1 KiB
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.
2015-01-13 19:30:32 +01:00
tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName28.ts(2,6): error TS2304: Cannot find name 'e'.
2014-11-18 23:34:04 +01:00
tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName28.ts(3,5): error TS1166: Computed property names are not allowed in class property declarations.
2015-01-13 19:30:32 +01:00
tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName28.ts(3,6): error TS2304: Cannot find name 'e2'.
2015-01-13 19:30:32 +01:00
==== tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName28.ts (4 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.
2015-01-13 19:30:32 +01:00
~
!!! error TS2304: Cannot find name 'e'.
[e2]: number
~~~~
2014-11-18 23:34:04 +01:00
!!! error TS1166: Computed property names are not allowed in class property declarations.
2015-01-13 19:30:32 +01:00
~~
!!! error TS2304: Cannot find name 'e2'.
}