21 lines
1.1 KiB
Text
21 lines
1.1 KiB
Text
=== tests/cases/compiler/inheritedFunctionAssignmentCompatibility.ts ===
|
|
interface IResultCallback extends Function { }
|
|
>IResultCallback : Symbol(IResultCallback, Decl(inheritedFunctionAssignmentCompatibility.ts, 0, 0))
|
|
>Function : Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11))
|
|
|
|
function fn(cb: IResultCallback) { }
|
|
>fn : Symbol(fn, Decl(inheritedFunctionAssignmentCompatibility.ts, 0, 46))
|
|
>cb : Symbol(cb, Decl(inheritedFunctionAssignmentCompatibility.ts, 2, 12))
|
|
>IResultCallback : Symbol(IResultCallback, Decl(inheritedFunctionAssignmentCompatibility.ts, 0, 0))
|
|
|
|
fn((a, b) => true);
|
|
>fn : Symbol(fn, Decl(inheritedFunctionAssignmentCompatibility.ts, 0, 46))
|
|
>a : Symbol(a, Decl(inheritedFunctionAssignmentCompatibility.ts, 4, 4))
|
|
>b : Symbol(b, Decl(inheritedFunctionAssignmentCompatibility.ts, 4, 6))
|
|
|
|
fn(function (a, b) { return true; })
|
|
>fn : Symbol(fn, Decl(inheritedFunctionAssignmentCompatibility.ts, 0, 46))
|
|
>a : Symbol(a, Decl(inheritedFunctionAssignmentCompatibility.ts, 5, 13))
|
|
>b : Symbol(b, Decl(inheritedFunctionAssignmentCompatibility.ts, 5, 15))
|
|
|
|
|