Skip to content

Commit 4dfd65f

Browse files
committed
Fix accidentally enabled warning about open classes
1 parent 9f50e2d commit 4dfd65f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1613,7 +1613,7 @@ class Namer { typer: Typer =>
16131613
else if pclazz.isEffectivelySealed && pclazz.associatedFile != cls.associatedFile then
16141614
if pclazz.is(Sealed) && !pclazz.is(JavaDefined) then
16151615
report.error(UnableToExtendSealedClass(pclazz), cls.srcPos)
1616-
else if sourceVersion.isAtLeast(`3.6`) then
1616+
else if sourceVersion.isAtLeast(future) then
16171617
checkFeature(nme.adhocExtensions,
16181618
i"Unless $pclazz is declared 'open', its extension in a separate file",
16191619
cls.topLevelClass,

0 commit comments

Comments
 (0)