From 34a068b7f6039637d6f1330e3d071f5bf75e9cec Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 30 Jun 2016 18:42:29 +0200 Subject: Drop Config.checkKinds Allows us to drop also the involved knownHK method. Lots of other cleanups. --- src/dotty/tools/dotc/typer/Inferencing.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dotty/tools/dotc/typer/Inferencing.scala') diff --git a/src/dotty/tools/dotc/typer/Inferencing.scala b/src/dotty/tools/dotc/typer/Inferencing.scala index e024192c3..c60f4c1f2 100644 --- a/src/dotty/tools/dotc/typer/Inferencing.scala +++ b/src/dotty/tools/dotc/typer/Inferencing.scala @@ -176,7 +176,7 @@ object Inferencing { /** Recursively widen and also follow type declarations and type aliases. */ def widenForMatchSelector(tp: Type)(implicit ctx: Context): Type = tp.widen match { case tp: TypeRef if !tp.symbol.isClass => - widenForMatchSelector(tp.info.bounds.hi) + widenForMatchSelector(tp.superType) case tp: HKApply => widenForMatchSelector(tp.superType) case tp: AnnotatedType => -- cgit v1.2.3