Skip to content

Commit d7d3368

Browse files
committed
Fix scala#4514: Add regression test
1 parent 13b7ba2 commit d7d3368

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/neg/i4514.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
object Foo {
2+
inline def foo[X](x: X): Unit = ~fooImpl('(x)) // error: missing typetag Type[X]. May not be an error if we synthesize them #4515.
3+
def fooImpl[X: quoted.Type](x: X): quoted.Expr[Unit] = '()
4+
}

0 commit comments

Comments
 (0)