diff options
-rw-r--r-- | tests/run/i1748.check | 2 | ||||
-rw-r--r-- | tests/run/i1748.scala (renamed from tests/pos/i1784.scala) | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/tests/run/i1748.check b/tests/run/i1748.check new file mode 100644 index 000000000..888299747 --- /dev/null +++ b/tests/run/i1748.check @@ -0,0 +1,2 @@ +class + extends diff --git a/tests/pos/i1784.scala b/tests/run/i1748.scala index 9bd487caa..bb3df1336 100644 --- a/tests/pos/i1784.scala +++ b/tests/run/i1748.scala @@ -1,13 +1,13 @@ object Test { implicit class Foo(sc: StringContext) { object q { - def unapply(args: Any*): Option[(Any, Any)] = + def unapply(arg: Any): Option[(Any, Any)] = Some((sc.parts(0), sc.parts(1))) } } - def f(defn: Any): Any = { - val q"class $name extends $parent" = defn + def main(args: Array[String]): Unit = { + val q"class $name extends $parent" = new Object println(name) println(parent) } |