aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/i1779.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/neg/i1779.scala')
-rw-r--r--tests/neg/i1779.scala13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/neg/i1779.scala b/tests/neg/i1779.scala
new file mode 100644
index 000000000..92100fa06
--- /dev/null
+++ b/tests/neg/i1779.scala
@@ -0,0 +1,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
+ }
+}