Source provides no match for required element at position 0 in target despite source extending [any, ...any[]] #48401
Labels
Design Limitation
Constraints of the existing architecture prevent this from being fixed
Bug Report
π Search Terms
tuple, conditional type
π Version & Regression Information
4.6.2
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
Comile error:
Error: Source provides no match for required element at position 0 in target
π Expected behavior
We should be able to pass
Tail
back intoRecursiveType
as we are ensuring thatTail
extends[any, ...any[]]
. I have tried this a few different ways, by re-inferring the type of the tail and by switching theTail
and[any, ...any[]]
around so we check that[any, ...any[]]
extendsTail
instead.The text was updated successfully, but these errors were encountered: