Skip to content

Commit 854c35d

Browse files
committed
Make tyconTypeParams only depend on current constraint
1 parent 8491d2d commit 854c35d

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
@@ -299,7 +299,7 @@ class OrderingConstraint(private val boundsMap: ParamBounds,
299299

300300
override def tyconTypeParams(tp: AppliedType)(using Context): List[ParamInfo] =
301301
def tparams(tycon: Type): List[ParamInfo] = tycon match
302-
case tycon: TypeVar if !tycon.isInstantiated => tparams(tycon.origin)
302+
case tycon: TypeVar if !tycon.inst.exists => tparams(tycon.origin)
303303
case tycon: TypeParamRef =>
304304
entry(tycon) match
305305
case _: TypeBounds => tp.tyconTypeParams

0 commit comments

Comments
 (0)