Skip to content

Commit 40dc06c

Browse files
committed
Fix rebase breakage
1 parent 681f3bc commit 40dc06c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ class GadtConstraint private (
8484
}
8585

8686
def externalize(tp: Type, theMap: TypeMap | Null = null)(using Context): Type = tp match
87-
case param: TypeParamRef => reverseMapping(param) match
88-
case sym: Symbol => sym.typeRef
89-
case null => param
87+
case param: TypeParamRef =>
88+
val sym = reverseMapping(param)
89+
if sym != null then sym.typeRef else param
9090
case tp: TypeAlias => tp.derivedAlias(externalize(tp.alias, theMap))
9191
case tp => (if theMap == null then ExternalizeMap() else theMap).mapOver(tp)
9292

0 commit comments

Comments
 (0)