TypeScript/tests/cases/compiler/noImplicitAnyWithOverloads.ts

10 lines
227 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
// @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