TypeScript/tests/baselines/reference/constructorStaticParamName.js

16 lines
372 B
TypeScript
Raw Normal View History

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