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