Skip to content

Commit 57e449e

Browse files
committed
Fix comment
1 parent c6685d5 commit 57e449e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,8 +1273,9 @@ object Types {
12731273
def underlying(implicit ctx: Context): Type
12741274

12751275
/** The closest supertype of this type. This is the same as `underlying`,
1276-
* except for TypeRefs where the upper bound is returned, and HKApplys,
1277-
* where the upper bound of the constructor is re-applied to the arguments.
1276+
* except that
1277+
* - instead of a TyperBounds type it returns its upper bound, and
1278+
* - for HKApplys it returns the upper bound of the constructor re-applied to the arguments.
12781279
*/
12791280
def superType(implicit ctx: Context): Type = underlying match {
12801281
case TypeBounds(_, hi) => hi

0 commit comments

Comments
 (0)