diff options
Diffstat (limited to 'tests/run/i1773.scala')
-rw-r--r-- | tests/run/i1773.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/run/i1773.scala b/tests/run/i1773.scala new file mode 100644 index 000000000..82fa0dfb4 --- /dev/null +++ b/tests/run/i1773.scala @@ -0,0 +1,14 @@ +object Test { + implicit class Foo(sc: StringContext) { + object q { + def unapply(arg: Any): Option[(Any, Any)] = + Some((sc.parts(0), sc.parts(1))) + } + } + + def main(args: Array[String]): Unit = { + val q"class ${name: String} extends ${parent: String}" = new Object + println(name) + println(parent) + } +} |