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

15 lines
1.1 KiB
Plaintext
Raw Normal View History

2015-04-09 02:49:14 +02:00
tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName36.ts(2,5): error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol.
2015-04-10 23:24:10 +02:00
tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName36.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/parserComputedPropertyName36.ts(2,6): error TS2304: Cannot find name 'public'.
2014-11-27 05:10:49 +01:00
2015-03-16 22:28:29 +01:00
==== tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName36.ts (3 errors) ====
2014-11-27 05:10:49 +01:00
class C {
[public ]: string;
2015-04-09 02:49:14 +02:00
~~~~~~~~~
!!! error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol.
2015-01-13 19:30:32 +01:00
~~~~~~
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'.
2014-11-27 05:10:49 +01:00
}