Skip to content

Commit

Permalink
Enable auto experimental with captureChecking
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasstucki committed Mar 5, 2024
1 parent b71ce86 commit 08f87c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/config/Feature.scala
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ object Feature:
def experimentalAutoEnableFeatures(using Context): List[TermName] =
defn.languageExperimentalFeatures
.map(sym => experimental(sym.name))
.filterNot(_ == captureChecking) // TODO is this correct?
// .filterNot(_ == captureChecking) // TODO is this correct?

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

Expand Down
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/typer/Checking.scala
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ object Checking {
val name = Feature.experimental(sel.name)
name == Feature.scala2macros
// || name == Feature.erasedDefinitions
|| name == Feature.captureChecking
// || name == Feature.captureChecking

languageImport(qual) match
case Some(nme.experimental)
Expand Down

0 comments on commit 08f87c3

Please sign in to comment.