15 lines
372 B
TypeScript
15 lines
372 B
TypeScript
//// [constructorStaticParamName.ts]
|
|
// static as constructor parameter name should only give error if 'use strict'
|
|
|
|
class test {
|
|
constructor (static) { }
|
|
}
|
|
|
|
|
|
//// [constructorStaticParamName.js]
|
|
// static as constructor parameter name should only give error if 'use strict'
|
|
var test = (function () {
|
|
function test(static) {
|
|
}
|
|
return test;
|
|
})();
|