Skip to content

Commit 6ad1432

Browse files
committed
Add pending test
1 parent c14cf7e commit 6ad1432

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/pending/pos/i4987.scala

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
object Foo {
2+
3+
class Expr[T]
4+
5+
abstract class Liftable[T] {
6+
def toExpr(x: T): Expr[T]
7+
}
8+
9+
implicit class LiftExprOps[T](val x: T) extends AnyVal {
10+
def toExpr(implicit ev: Liftable[T]): Expr[T] = ev.toExpr(x)
11+
}
12+
13+
implicit def NilIsLiftable: Liftable[Nil.type] = ???
14+
15+
Nil.toExpr(NilIsLiftable)
16+
(Nil.toExpr: Expr[Nil.type])
17+
Nil.toExpr
18+
}

0 commit comments

Comments
 (0)