TypeScript/tests/cases/compiler/noImplicitAnyWithOverloads.ts
2014-07-12 17:30:19 -07:00

10 lines
227 B
TypeScript

// @noimplicitany: true
interface A {
foo;
}
interface B { }
function callb(lam: (l: A) => void);
function callb(lam: (n: B) => void);
function callb(a) { }
callb((a) => { a.foo; }); // error, chose first overload