Skip to content

Commit

Permalink
Fix typo in the comment
Browse files Browse the repository at this point in the history
  • Loading branch information
noti0na1 committed Oct 29, 2024
1 parent f16d565 commit ad58323
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compiler/src/dotty/tools/dotc/cc/CaptureRef.scala
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ trait CaptureRef extends TypeProxy, ValueType:
|| this.match
case x @ TermRef(xpre: CaptureRef, _) if x.symbol == y.symbol =>
// To show `{x.f} <:< {y.f}`, it is important to prove `x` and `y`
// are equvalent, which means `x =:= y` in terms for subtyping,
// not just `{x} =:= {y}`.
// It is posible to construct two singleton types `x` and `y`,
// which subumse each other, but are not equal references.
// are equvalent, which means `x =:= y` in terms of subtyping,
// not just `{x} =:= {y}` in terms of subcapturing.
// It is possible to construct two singleton types `x` and `y`,
// which subsume each other, but are not equal references.
// See `tests/neg-custom-args/captures/path-prefix.scala` for example.
withMode(Mode.IgnoreCaptures) {TypeComparer.isSameRef(xpre, ypre)}
case _ =>
Expand Down

0 comments on commit ad58323

Please sign in to comment.