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
{{ message }}
Repository navigation
#47341 breaks knockout.mapping tests on Definitely Typed #47371
But really, that ought to fail, it just happened not to previously because we cross-related the signatures. I mean, src might reference a Kow<true> which shouldn't be callable with a boolean.
Activity
ahejlsberg commentedon Jan 10, 2022
Hmm, the repro also fails with TS 4.5.4. Am I missing something?
ahejlsberg commentedon Jan 10, 2022
Actually, here's a repro that only fails with #47341.
But really, that ought to fail, it just happened not to previously because we cross-related the signatures. I mean,
srcmight reference aKow<true>which shouldn't be callable with aboolean.ahejlsberg commentedon Jan 10, 2022
And, just to add to the bizarreness of our current behavior, we error if the type is written as an aliased type instead of an interface:
The two obviously should behave the same.
sandersn commentedon Jan 10, 2022
So it sounds like
mainis in a better state than 4.5.4, right? If that's the case then this issue should be closed.ahejlsberg commentedon Jan 11, 2022
Yes, I'd say
mainhas better and more consistent behavior.