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 0d34bfb commit 48786d1Copy full SHA for 48786d1
compiler/src/dotty/tools/dotc/ast/Desugar.scala
@@ -1108,7 +1108,7 @@ object desugar {
1108
1109
/** Expand variable identifier x to x @ _ */
1110
def patternVar(tree: Tree)(implicit ctx: Context): Bind = {
1111
- val Ident(name) = tree
+ val Ident(name) = unsplice(tree)
1112
Bind(name, Ident(nme.WILDCARD)).withSpan(tree.span)
1113
}
1114
tests/neg/i7247.scala
@@ -0,0 +1,2 @@
1
+val x = "foo" match
2
+ case _: (a *: (b: Any)) => ??? // error
0 commit comments