Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/ast/Desugar.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ object desugar {

/** Expand variable identifier x to x @ _ */
def patternVar(tree: Tree)(implicit ctx: Context): Bind = {
val Ident(name) = tree
val Ident(name) = unsplice(tree)
Bind(name, Ident(nme.WILDCARD)).withSpan(tree.span)
}

Expand Down
2 changes: 2 additions & 0 deletions tests/neg/i7247.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
val x = "foo" match
case _: (a *: (b: Any)) => ??? // error