Skip to content

Commit 71e2cd8

Browse files
committed
Enable tracked by default to test infering tracked
1 parent 1e2c226 commit 71e2cd8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

compiler/src/dotty/tools/dotc/config/Feature.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ object Feature:
113113
* feature is defined.
114114
*/
115115
def enabled(feature: TermName)(using Context): Boolean =
116-
enabledBySetting(feature) || enabledByImport(feature)
116+
enabledBySetting(feature) || enabledByImport(feature) || feature == tracked
117117

118118
/** Is auto-tupling enabled? */
119119
def autoTuplingEnabled(using Context): Boolean = !enabled(nme.noAutoTupling)

scaladoc/src/dotty/tools/scaladoc/tasty/TastyParser.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ case class ScaladocTastyInspector()(using ctx: DocContext) extends Inspector:
127127
topLevels ++= intrinsicTypeDefs
128128
val scalaPckg = defn.ScalaPackage
129129
given parser.qctx.type = parser.qctx
130+
import parser.dri
130131
topLevels += "scala" -> Member(scalaPckg.fullName, "", scalaPckg.dri, Kind.Package)
131132
topLevels += mergeAnyRefAliasAndObject(parser)
132133

0 commit comments

Comments
 (0)