From 05c0e55850a5b086e38d3a54e937106f727fbe8e Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 3 Dec 2015 10:17:28 +0100 Subject: Fix bug computing typeParams for hk types Arg bounds do not count is bindings. --- src/dotty/tools/dotc/core/TypeApplications.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/dotty/tools/dotc/core/TypeApplications.scala') diff --git a/src/dotty/tools/dotc/core/TypeApplications.scala b/src/dotty/tools/dotc/core/TypeApplications.scala index c6abc9360..5b34fe662 100644 --- a/src/dotty/tools/dotc/core/TypeApplications.scala +++ b/src/dotty/tools/dotc/core/TypeApplications.scala @@ -204,7 +204,9 @@ class TypeApplications(val self: Type) extends AnyVal { if (lam.exists) lam.typeParams else Nil } case self: RefinedType => - self.parent.typeParams.filterNot(_.name == self.refinedName) + val hkParams = self.hkTypeParams + if (hkParams.nonEmpty) hkParams + else self.parent.typeParams.filterNot(_.name == self.refinedName) case self: SingletonType => Nil case self: TypeProxy => -- cgit v1.2.3