diff options
author | odersky <odersky@gmail.com> | 2016-12-15 15:47:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-15 15:47:24 +0100 |
commit | 1773b37286e1b3363b756f0c061ae429b94d9b5d (patch) | |
tree | b07b326cc35966bf28de5ce10668d2759afc589b /tests/neg | |
parent | ba14bbea35c3c61f13885b42d371283c98a14650 (diff) | |
parent | 628a177f7f5654f4c388b944a098c3723cf7f950 (diff) | |
download | dotty-1773b37286e1b3363b756f0c061ae429b94d9b5d.tar.gz dotty-1773b37286e1b3363b756f0c061ae429b94d9b5d.tar.bz2 dotty-1773b37286e1b3363b756f0c061ae429b94d9b5d.zip |
Merge pull request #1780 from dotty-staging/fix-i1779
fix #1779: support $_ and $_id in interpolated string
Diffstat (limited to 'tests/neg')
-rw-r--r-- | tests/neg/i1779.scala | 13 |
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 + } +} |