We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74cee6a commit 8f3301eCopy full SHA for 8f3301e
tests/run/i1748.check
@@ -0,0 +1,2 @@
1
+class
2
+ extends
tests/pos/i1784.scala renamed to tests/run/i1748.scala
@@ -1,13 +1,13 @@
object Test {
implicit class Foo(sc: StringContext) {
3
object q {
4
- def unapply(args: Any*): Option[(Any, Any)] =
+ def unapply(arg: Any): Option[(Any, Any)] =
5
Some((sc.parts(0), sc.parts(1)))
6
}
7
8
9
- def f(defn: Any): Any = {
10
- val q"class $name extends $parent" = defn
+ def main(args: Array[String]): Unit = {
+ val q"class $name extends $parent" = new Object
11
println(name)
12
println(parent)
13
0 commit comments