mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
11 lines
556 B
Plaintext
11 lines
556 B
Plaintext
constructorStaticParamNameErrors.ts(4,18): error TS1213: Identifier expected. 'static' is a reserved word in strict mode. Class definitions are automatically in strict mode.
|
|
|
|
|
|
==== constructorStaticParamNameErrors.ts (1 errors) ====
|
|
'use strict'
|
|
// static as constructor parameter name should give error if 'use strict'
|
|
class test {
|
|
constructor (static) { }
|
|
~~~~~~
|
|
!!! error TS1213: Identifier expected. 'static' is a reserved word in strict mode. Class definitions are automatically in strict mode.
|
|
} |