Skip to content

Commit 9eddfe2

Browse files
oderskybracevac
andauthored
Update compiler/src/dotty/tools/dotc/cc/CheckCaptures.scala
Co-authored-by: Oliver Bračevac <[email protected]>
1 parent 4de706b commit 9eddfe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/cc/CheckCaptures.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,7 @@ class CheckCaptures extends Recheck, SymTransformer:
12391239
* This ensures that if files compile separately, they will also compile
12401240
* in a joint compilation.
12411241
* 2. If a val has an inferred type with a terminal capability in its span capset,
1242-
* check that it this capability is subsumed by the capset that was inferred
1242+
* check that this capability is subsumed by the capset that was inferred
12431243
* for the class from its other fields via `captureSetImpliedByFields`.
12441244
* That capset is defined to take into account all fields but is computed
12451245
* only from fields with explicitly given types in order to avoid cycles.

0 commit comments

Comments
 (0)