TypeScript/tests/baselines/reference/constructorStaticParamNameErrors.js

16 lines
400 B
TypeScript
Raw Normal View History

//// [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'
var test = (function () {
2015-04-09 02:49:14 +02:00
function test(static) {
}
return test;
})();