We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f50e2d commit 4dfd65fCopy full SHA for 4dfd65f
compiler/src/dotty/tools/dotc/typer/Namer.scala
@@ -1613,7 +1613,7 @@ class Namer { typer: Typer =>
1613
else if pclazz.isEffectivelySealed && pclazz.associatedFile != cls.associatedFile then
1614
if pclazz.is(Sealed) && !pclazz.is(JavaDefined) then
1615
report.error(UnableToExtendSealedClass(pclazz), cls.srcPos)
1616
- else if sourceVersion.isAtLeast(`3.6`) then
+ else if sourceVersion.isAtLeast(future) then
1617
checkFeature(nme.adhocExtensions,
1618
i"Unless $pclazz is declared 'open', its extension in a separate file",
1619
cls.topLevelClass,
0 commit comments