File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
compiler/src/dotty/tools/dotc/cc Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -124,10 +124,10 @@ trait CaptureRef extends TypeProxy, ValueType:
124124 || this .match
125125 case x @ TermRef (xpre : CaptureRef , _) if x.symbol == y.symbol =>
126126 // To show `{x.f} <:< {y.f}`, it is important to prove `x` and `y`
127- // are equvalent, which means `x =:= y` in terms for subtyping,
128- // not just `{x} =:= {y}`.
129- // It is posible to construct two singleton types `x` and `y`,
130- // which subumse each other, but are not equal references.
127+ // are equvalent, which means `x =:= y` in terms of subtyping,
128+ // not just `{x} =:= {y}` in terms of subcapturing .
129+ // It is possible to construct two singleton types `x` and `y`,
130+ // which subsume each other, but are not equal references.
131131 // See `tests/neg-custom-args/captures/path-prefix.scala` for example.
132132 withMode(Mode .IgnoreCaptures ) {TypeComparer .isSameRef(xpre, ypre)}
133133 case _ =>
You can’t perform that action at this time.
0 commit comments