Skip to content

Commit cecaffe

Browse files
committed
Avoid pickling error
Making `newConstraint` private caused its default getters to be `private[this]` before pickling but `private` after pickling. Need to follow up on why that is.
1 parent 320c78c commit cecaffe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/OrderingConstraint.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class OrderingConstraint(private val boundsMap: ParamBounds,
138138
type This = OrderingConstraint
139139

140140
/** A new constraint with given maps and given set of hard typevars */
141-
private def newConstraint(
141+
def newConstraint( // !!! Dotty problem: Making newConstraint `private` causes -Ytest-pickler failure.
142142
boundsMap: ParamBounds = this.boundsMap,
143143
lowerMap: ParamOrdering = this.lowerMap,
144144
upperMap: ParamOrdering = this.upperMap,

0 commit comments

Comments
 (0)