* 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
31 lines
580 B
TypeScript
31 lines
580 B
TypeScript
// @noEmit: true
|
|
// @allowJs: true
|
|
// @checkJs: true
|
|
// @Filename: types.d.ts
|
|
declare var require: any;
|
|
declare var module: any;
|
|
// @Filename: minimatch.js
|
|
/// <reference path='./types.d.ts'/>
|
|
module.exports = minimatch
|
|
minimatch.M = M
|
|
minimatch.filter = filter
|
|
function filter() {
|
|
return minimatch()
|
|
}
|
|
function minimatch() {
|
|
}
|
|
M.defaults = function (def) {
|
|
return def
|
|
}
|
|
M.prototype.m = function () {
|
|
}
|
|
function M() {
|
|
}
|
|
|
|
// @Filename: use.js
|
|
/// <reference path='./types.d.ts'/>
|
|
var mini = require('./minimatch')
|
|
mini.M.defaults()
|
|
var m = new mini.M()
|
|
m.m()
|
|
mini.filter()
|