Skip to content

Commit 75c78da

Browse files
committed
Tweak documentation
1 parent aea7064 commit 75c78da

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compiler/src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)