File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1271,8 +1271,9 @@ class Typer extends Namer
12711271 if (ctx.mode.is(Mode .Pattern )) {
12721272 // Associate a pattern-bound type symbol with the wildcard.
12731273 // The bounds of the type symbol can be constrained when comparing a pattern type
1274- // with an expected type in typedTyped. The type symbol is eliminated once
1275- // the enclosing pattern has been typechecked; see `indexPattern` in `typedCase`.
1274+ // with an expected type in typedTyped. The type symbol and the defining Bind node
1275+ // are eliminated once the enclosing pattern has been typechecked; see `indexPattern`
1276+ // in `typedCase`.
12761277 val wildcardSym = ctx.newPatternBoundSymbol(tpnme.WILDCARD , tree1.tpe, tree.pos)
12771278 untpd.Bind (tpnme.WILDCARD , tree1).withType(wildcardSym.typeRef)
12781279 }
You can’t perform that action at this time.
0 commit comments