From 6cc666f316575415d2d1779da3f7404fe9f04e3d Mon Sep 17 00:00:00 2001 From: liu fengyun Date: Tue, 14 Mar 2017 07:07:04 +0100 Subject: fix #2071: handle HKApply in SAMType --- compiler/src/dotty/tools/dotc/core/Types.scala | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compiler') 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 } -- cgit v1.2.3