mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
430 B
TypeScript
16 lines
430 B
TypeScript
//// [tests/cases/compiler/constructorStaticParamNameErrors.ts] ////
|
|
|
|
//// [constructorStaticParamNameErrors.ts]
|
|
'use strict'
|
|
// static as constructor parameter name should give error if 'use strict'
|
|
class test {
|
|
constructor (static) { }
|
|
}
|
|
|
|
//// [constructorStaticParamNameErrors.js]
|
|
'use strict';
|
|
// static as constructor parameter name should give error if 'use strict'
|
|
class test {
|
|
constructor(static) { }
|
|
}
|