* Passing --checkJs always sets --allowJS Even if you have `"allowJs": false`. This is not a useful combination. Changing this makes the compiler more friendly and easier to describe. * only set allowjs if not explicitly set * remove stray newline * restore bad config error * use an accessor function instead
10 lines
145 B
TypeScript
10 lines
145 B
TypeScript
// @checkJs: true
|
|
// @noEmit: true
|
|
// @filename: a.js
|
|
OOOrder.prototype.m = function () {
|
|
this.p = 1
|
|
}
|
|
function OOOrder() {
|
|
this.x = 1
|
|
}
|