Skip to content

Commit 6a4d06a

Browse files
committed
Fix syntax change
1 parent 1694e4a commit 6a4d06a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/init/crash/i6914.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ trait Expr[T]
22
trait Liftable[T]
33

44
object test1 {
5-
class ToExpr[T](given Liftable[T]) extends Conversion[T, Expr[T]] {
5+
class ToExpr[T](using Liftable[T]) extends Conversion[T, Expr[T]] {
66
def apply(x: T): Expr[T] = ???
77
}
8-
given toExprFun[T](given Liftable[T]): ToExpr[T]
8+
given toExprFun[T](using Liftable[T]) as ToExpr[T]
99

1010
given Liftable[Int] = ???
1111
given Liftable[String] = ???
@@ -18,7 +18,7 @@ object test1 {
1818

1919
object test2 {
2020

21-
given autoToExpr[T](given Liftable[T]) : Conversion[T, Expr[T]] {
21+
given autoToExpr[T](using Liftable[T]) as Conversion[T, Expr[T]] {
2222
def apply(x: T): Expr[T] = ???
2323
}
2424

0 commit comments

Comments
 (0)