scala3 icon indicating copy to clipboard operation
scala3 copied to clipboard

Discrepancy in signature of `Tuple.splitAt` between api website and implementation

Open Sporarum opened this issue 3 years ago • 0 comments

(Also on 3.2.0) https://dotty.epfl.ch/api/scala/Tuple.html# Displays:

inline def splitAt[This >: Tuple <: Tuple](n: Int): (This, Int)

Whereas the signature in the implementation is:

inline def splitAt[This >: this.type <: Tuple](n: Int): Split[This, n.type]

https://github.com/lampepfl/dotty/blob/main/library/src/scala/Tuple.scala#L79

Sporarum avatar Sep 21 '22 14:09 Sporarum