Skip to content

Commit f4b401e

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

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
@@ -2144,7 +2144,7 @@ class CheckCaptures extends Recheck, SymTransformer:
21442144
* A parent class constructor is _read-only_ if the following conditions are met
21452145
* 1. The class does not retain any exclusive capabilities from its environment.
21462146
* 2. The constructor does not take arguments that retain exclusive capabilities.
2147-
* 3. The class does not does not have fields that retain exclusive universal capabilities.
2147+
* 3. The class does not have fields that retain exclusive universal capabilities.
21482148
*/
21492149
def checkMutableInheritance(cls: ClassSymbol, parents: List[Tree])(using Context): Unit =
21502150
if cls.derivesFrom(defn.Caps_Mutable) then

0 commit comments

Comments
 (0)