We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6685d5 commit 57e449eCopy full SHA for 57e449e
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -1273,8 +1273,9 @@ object Types {
1273
def underlying(implicit ctx: Context): Type
1274
1275
/** 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.
+ * except that
+ * - 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.
1279
*/
1280
def superType(implicit ctx: Context): Type = underlying match {
1281
case TypeBounds(_, hi) => hi
0 commit comments