Skip to content

Commit

Permalink
Be explicit about Vector package
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Dec 2, 2024
1 parent 7859021 commit 237600a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/vacuous.Default.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

package vacuous

import scala.collection.immutable as sci

import anticipation.*

object Default:
Expand All @@ -27,7 +29,7 @@ object Default:
given string: Default[String] = () => ""
given list[ElemType]: Default[List[ElemType]] = () => Nil
given set[ElemType]: Default[Set[ElemType]] = () => Set()
given vector[ElemType]: Default[Vector[ElemType]] = () => Vector()
given vector[ElemType]: Default[sci.Vector[ElemType]] = () => sci.Vector()

trait Default[+ValueType]:
def apply(): ValueType

0 comments on commit 237600a

Please sign in to comment.