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