Skip to content

Commit 39ade4e

Browse files
committed
Fix neg test
1 parent c1a7ff7 commit 39ade4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/neg/i7459.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ object Foo {
22
inline def summon[T](x: T): T = x match {
33
case t: T => t
44
}
5-
println(summon)
5+
println(summon) // error
66
}
77

88
import scala.deriving._
@@ -14,7 +14,7 @@ inline def summon[T](given t:T): T = t match {
1414

1515
inline def summonAll[T <: Tuple]: List[Eq[_]] = inline erasedValue[T] match {
1616
case _: Unit => Nil
17-
case _: (t *: ts) => summon[Eq[t]] :: summonAll[ts]
17+
case _: (t *: ts) => summon[Eq[t]] :: summonAll[ts] // error
1818
}
1919

2020
trait Eq[T] {

0 commit comments

Comments
 (0)