-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
object Foo {
inline def foo[X](x: X): Unit = ~fooImpl('(x))
def fooImpl[X: quoted.Type](x: quoted.Expr[X]): quoted.Expr[Unit] = '()
}currently fails with
3 | inline def foo[X](x: X): Unit = ~fooImpl('(x))
| ^
|no implicit argument of type quoted.Type[X] was found for parameter evidence$1 of method fooImpl in object FooWe need to write instead
inline def foo[X](x: X): Unit = ~fooImpl('(x))('[X])We should be able to synthesize classtags inside top level splices to reduce this syntactic overhead.
This would be a change in Typer and not in ReifyQuotes.