From 32c0135b59fe02a70ed0b1a693251a0028d479c8 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 30 Jun 2016 14:27:43 +0200 Subject: Refactorings of GenericTypes and underlying/upperbound 1. Make genericType a trait instead of a class. 2. Make TypeLambda a type proxy 3. Split underlying in TypeProxy into underlying and superType 4. Cleanups in many other places --- 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 28f3af7cb..e024192c3 100644 --- a/src/dotty/tools/dotc/typer/Inferencing.scala +++ b/src/dotty/tools/dotc/typer/Inferencing.scala @@ -178,7 +178,7 @@ object Inferencing { case tp: TypeRef if !tp.symbol.isClass => widenForMatchSelector(tp.info.bounds.hi) case tp: HKApply => - widenForMatchSelector(tp.upperBound) + widenForMatchSelector(tp.superType) case tp: AnnotatedType => tp.derivedAnnotatedType(widenForMatchSelector(tp.tpe), tp.annot) case tp => tp -- cgit v1.2.3