Skip to content

Commit 08f87c3

Browse files
committed
Enable auto experimental with captureChecking
1 parent b71ce86 commit 08f87c3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: compiler/src/dotty/tools/dotc/config/Feature.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ object Feature:
3737
def experimentalAutoEnableFeatures(using Context): List[TermName] =
3838
defn.languageExperimentalFeatures
3939
.map(sym => experimental(sym.name))
40-
.filterNot(_ == captureChecking) // TODO is this correct?
40+
// .filterNot(_ == captureChecking) // TODO is this correct?
4141

4242
val globalOnlyImports: Set[TermName] = Set(pureFunctions, captureChecking)
4343

Diff for: compiler/src/dotty/tools/dotc/typer/Checking.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ object Checking {
828828
val name = Feature.experimental(sel.name)
829829
name == Feature.scala2macros
830830
// || name == Feature.erasedDefinitions
831-
|| name == Feature.captureChecking
831+
// || name == Feature.captureChecking
832832

833833
languageImport(qual) match
834834
case Some(nme.experimental)

0 commit comments

Comments
 (0)