blob: 92100fa062302e00bb9f80c53556b578eee08bfd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
object Test {
implicit class Foo(sc: StringContext) {
object q {
def apply(arg: Any*): Int = 3
}
}
def f = {
val _parent = 3
q"val hello = $_parent"
q"class $_" // error // error
}
}
|