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

8 lines
151 B
TypeScript

interface IResultCallback extends Function { }
function fn(cb: IResultCallback) { }
fn((a, b) => true);
fn(function (a, b) { return true; })