We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b25407 commit 6d98e4dCopy full SHA for 6d98e4d
tests/pos/reference/compile-time.scala
@@ -38,6 +38,8 @@ class Test {
38
case _: Succ[n] => toIntT[n] + 1
39
}
40
41
+ inline def summonFrom(f: Nothing => Any) <: Any = ???
42
+
43
final val two = toIntT[Succ[Succ[Zero.type]]]
44
45
tests/pos/reference/delegate-match.scala
@@ -2,9 +2,9 @@ package implicitmatch
2
3
class Test extends App {
4
import scala.collection.immutable.{TreeSet, HashSet}
5
- import scala.compiletime.summonFrom
+ import compiletime.summonFrom
6
7
- inline def setFor[T] <: Set[T] = compiletime.summonFrom {
+ inline def setFor[T] <: Set[T] = summonFrom {
8
case given ord: Ordering[T] => new TreeSet[T]
9
case _ => new HashSet[T]
10
0 commit comments