TypeScript/tests/cases/compiler/checkIndexConstraintOfJavascriptClassExpression.ts
Nathan Shively-Sanders 2e9143aaf0 Clean up test a little
2017-05-08 11:36:30 -07:00

20 lines
426 B
TypeScript

// @Filename: weird.js
// @allowJs: true
// @checkJs: true
// @strict: true
// @noEmit: true
// @out: foo.js
someFunction(function(BaseClass) {
'use strict';
const DEFAULT_MESSAGE = "nop!";
class Hello extends BaseClass {
constructor() {
super();
this.foo = "bar";
}
_render(error) {
const message = error.message || DEFAULT_MESSAGE;
}
}
});