aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Types.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools/dotc/core/Types.scala')
-rw-r--r--src/dotty/tools/dotc/core/Types.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/Types.scala b/src/dotty/tools/dotc/core/Types.scala
index af2b694f5..468c5f58a 100644
--- a/src/dotty/tools/dotc/core/Types.scala
+++ b/src/dotty/tools/dotc/core/Types.scala
@@ -748,14 +748,14 @@ object Types {
/** The type arguments of the base type instance wrt `base` of this type */
final def baseTypeArgs(base: Symbol)(implicit ctx: Context): List[Type] =
- if (this <:< base.symRef)
+ if (this derivesFrom base)
base.typeParams map (param => member(param.name).info.argType(param))
else
Nil
/** The first type argument of the base type instance wrt `base` of this type */
final def firstBaseTypeArg(base: Symbol)(implicit ctx: Context): Type = base.typeParams match {
- case param :: _ if this <:< base.symRef =>
+ case param :: _ if this derivesFrom base =>
member(param.name).info.argType(param)
case _ =>
NoType