You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functiontest<T=unknown>(options: {a: (c: T)=>void,b: ()=>T}){}test({a: (c)=>{c},// c is numberb: ()=>123})test({b: ()=>123,a: (c)=>{returnc},// c is number})test({b(){return123},a(c){returnc},// c is number})test({a(c){returnc},// c is unknown, expected number as above inferencesb(){return123}})
π Actual behavior
last 'a' parameter 'c' inner test() inferred as unknown
π Expected behavior
last 'a' parameter 'c' inner test() inferred as number