Skip to content

Commit 9f55efa

Browse files
committed
changing externalize to protected
1 parent 8dcd9aa commit 9f55efa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,12 @@ final class ProperGadtConstraint private(
757757

758758
// ---- Private ----------------------------------------------------------
759759

760-
private def externalize(tp: Type, theMap: TypeMap | Null = null)(using Context): Type = tp match
760+
/** Externalize the internal TypeParamRefs in the given type.
761+
*
762+
* We declare the method as `protected` instead of `private`, because declaring it as
763+
* private will break a pickling test. This is a temporary workaround.
764+
*/
765+
protected def externalize(tp: Type, theMap: TypeMap | Null = null)(using Context): Type = tp match
761766
case param: TypeParamRef => reverseMapping(param) match
762767
case sym: Symbol => sym.typeRef
763768
case null =>

0 commit comments

Comments
 (0)