13 lines
No EOL
782 B
Text
13 lines
No EOL
782 B
Text
tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName39.ts(3,6): error TS1213: Identifier expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode.
|
|
tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName39.ts(3,6): error TS2304: Cannot find name 'public'.
|
|
|
|
|
|
==== tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName39.ts (2 errors) ====
|
|
"use strict";
|
|
class C {
|
|
[public]() { }
|
|
~~~~~~
|
|
!!! error TS1213: Identifier expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode.
|
|
~~~~~~
|
|
!!! error TS2304: Cannot find name 'public'.
|
|
} |