* Add test case and temporarily disable inference (Inference of class members from this-assignments inside a prototype-assigned function.) * Update baselines * In blocks and source files, bind functions first * Add tests from other bugs * Remove temporary failsafe * Update tests to restore intent and clean up errors * Restore intent even better * Restore intent even better x2 * Add missed baselines
17 lines
375 B
TypeScript
17 lines
375 B
TypeScript
// @allowJs: true
|
|
// @checkJs: true
|
|
// @noEmit: true
|
|
// @Filename: types.d.ts
|
|
declare var require: any;
|
|
declare var module: any;
|
|
// @Filename: semver.js
|
|
/// <reference path='./types.d.ts'/>
|
|
exports = module.exports = C
|
|
C.f = n => n + 1
|
|
function C() {
|
|
this.p = 1
|
|
}
|
|
// @filename: index.js
|
|
/// <reference path='./types.d.ts'/>
|
|
const C = require("./semver")
|
|
var two = C.f(1)
|