Skip to content

Commit

Permalink
:: needs to be invariant in this fork to Ycheck
Browse files Browse the repository at this point in the history
Dotty upstream has custom fixes to make it covariant.
  • Loading branch information
DarkDimius committed Nov 23, 2015
1 parent ba14549 commit 160a23b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minicoll/collection/immutable/List.scala
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ case object Nil extends List[Nothing] {
* @since 2.8
*/
@SerialVersionUID(509929039250432923L) // value computed by serialver for 2.11.2, annotation added in 2.11.4
final case class ::[+B](override val head: B, private[scala] var tl: List[B]) extends List[B] {
final case class ::[B](override val head: B, private[scala] var tl: List[B]) extends List[B] {
override def tail : List[B] = tl
override def isEmpty: Boolean = false
}
Expand Down

0 comments on commit 160a23b

Please sign in to comment.