Skip to content

Commit fa8e36b

Browse files
committed
Change top type to AnyKind
1 parent 3386185 commit fa8e36b

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
@@ -263,7 +263,7 @@ class OrderingConstraint(private val boundsMap: ParamBounds,
263263
private def normalizedType(tp: Type, paramBuf: mutable.ListBuffer[TypeParamRef],
264264
isUpper: Boolean)(implicit ctx: Context): Type =
265265
stripParams(tp, paramBuf, isUpper)
266-
.orElse(if (isUpper) defn.AnyType else defn.NothingType)
266+
.orElse(if (isUpper) defn.AnyKindType else defn.NothingType)
267267

268268
def add(poly: TypeLambda, tvars: List[TypeVar])(implicit ctx: Context): This = {
269269
assert(!contains(poly))

0 commit comments

Comments
 (0)