TypeScript/tests/cases/compiler/inferSecondaryParameter.ts

9 lines
223 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
// type inference on 'bug' should give 'any'
interface Ib { m(test: string, fn: Function); }
var b: Ib = { m: function (test: string, fn: Function) { } };
b.m("test", function (bug) {
var a: number = bug;
});