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

12 lines
763 B
Plaintext
Raw Normal View History

2015-04-10 23:24:10 +02:00
tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName38.ts(2,6): error TS1213: Identifier expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode.
2015-04-09 02:49:14 +02:00
tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName38.ts(2,6): error TS2304: Cannot find name 'public'.
2015-01-13 19:30:32 +01:00
2015-04-09 02:49:14 +02:00
==== tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName38.ts (2 errors) ====
2015-01-13 19:30:32 +01:00
class C {
[public]() { }
~~~~~~
2015-04-10 23:24:10 +02:00
!!! error TS1213: Identifier expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode.
2015-04-09 02:49:14 +02:00
~~~~~~
!!! error TS2304: Cannot find name 'public'.
}