aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/core/Types.scala
diff options
context:
space:
mode:
authorliu fengyun <liu@fengy.me>2017-03-14 07:07:04 +0100
committerliu fengyun <liu@fengy.me>2017-03-14 09:15:00 +0100
commit6cc666f316575415d2d1779da3f7404fe9f04e3d (patch)
tree5888d558917ef56e30a5fc545a227892fab416da /compiler/src/dotty/tools/dotc/core/Types.scala
parent921f8bffc18b19449b2c1ad68c32725a7b7532e2 (diff)
downloaddotty-6cc666f316575415d2d1779da3f7404fe9f04e3d.tar.gz
dotty-6cc666f316575415d2d1779da3f7404fe9f04e3d.tar.bz2
dotty-6cc666f316575415d2d1779da3f7404fe9f04e3d.zip
fix #2071: handle HKApply in SAMType
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/Types.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/core/Types.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/Types.scala b/compiler/src/dotty/tools/dotc/core/Types.scala
index 639f5d142..2e471215b 100644
--- a/compiler/src/dotty/tools/dotc/core/Types.scala
+++ b/compiler/src/dotty/tools/dotc/core/Types.scala
@@ -3328,6 +3328,8 @@ object Types {
zeroParamClass(tp.underlying)
case tp: TypeVar =>
zeroParamClass(tp.underlying)
+ case tp: HKApply =>
+ zeroParamClass(tp.superType)
case _ =>
NoType
}