We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1694e4a commit 6a4d06aCopy full SHA for 6a4d06a
tests/init/crash/i6914.scala
@@ -2,10 +2,10 @@ trait Expr[T]
2
trait Liftable[T]
3
4
object test1 {
5
- class ToExpr[T](given Liftable[T]) extends Conversion[T, Expr[T]] {
+ class ToExpr[T](using Liftable[T]) extends Conversion[T, Expr[T]] {
6
def apply(x: T): Expr[T] = ???
7
}
8
- given toExprFun[T](given Liftable[T]): ToExpr[T]
+ given toExprFun[T](using Liftable[T]) as ToExpr[T]
9
10
given Liftable[Int] = ???
11
given Liftable[String] = ???
@@ -18,7 +18,7 @@ object test1 {
18
19
object test2 {
20
21
- given autoToExpr[T](given Liftable[T]) : Conversion[T, Expr[T]] {
+ given autoToExpr[T](using Liftable[T]) as Conversion[T, Expr[T]] {
22
23
24
0 commit comments