Skip to content

Commit 71052cc

Browse files
committed
Move test from neg to pos
Now type inference does not infer `~t` anymore, now it infers `T` which is phase correct. Writing `~t` explicitly still fails as expected (tests/neg/i4774b.scala).
1 parent 6b27cb6 commit 71052cc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/neg/i4774a.scala renamed to tests/pos/i4774a.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import scala.quoted._
44
object Test {
55
def loop[T](x: Expr[T])(implicit t: Type[T]): Expr[T] = '{
66
val y: ~t = ~x
7-
~loop( // error: inferred loop[~t] where T should be used
8-
'(y)
9-
)
7+
~loop('(y))
108
}
119
}

0 commit comments

Comments
 (0)