File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -628,7 +628,7 @@ class Definitions {
628
628
}
629
629
constr.info = newInfo
630
630
constr.termRef.recomputeDenot()
631
- cls.setFlag(NoInits )
631
+ cls.setFlag(NoInits | Permanent )
632
632
cls
633
633
}
634
634
def JavaEnumType = JavaEnumClass .typeRef
Original file line number Diff line number Diff line change @@ -816,10 +816,8 @@ object Denotations {
816
816
private def updateValidity ()(implicit ctx : Context ): this .type = {
817
817
assert(
818
818
ctx.runId >= validFor.runId ||
819
- ctx.settings.YtestPickler .value || // mixing test pickler with debug printing can travel back in time
820
- symbol.isContainedIn(defn.JavaEnumClass ) || // the java.lang.Enum constructor highjacking leads to backwards time travel...
821
- symbol.is(Package ), // ... which also means packages can travel backwards in time.
822
-
819
+ ctx.settings.YtestPickler .value || // mixing test pickler with debug printing can travel back in time
820
+ symbol.is(Permanent ), // Permanent symbols are valid in all runIds
823
821
s " denotation $this invalid in run ${ctx.runId}. ValidFor: $validFor" )
824
822
var d : SingleDenotation = this
825
823
do {
You can’t perform that action at this time.
0 commit comments