Skip to content

Commit

Permalink
Refine HKApply#superType
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed Jul 27, 2016
1 parent 16a688f commit 04e6d5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dotty/tools/dotc/core/Types.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2645,7 +2645,7 @@ object Types {
if (ctx.period != validSuper) {
cachedSuper = tycon match {
case tp: TypeLambda => defn.AnyType
case tp: TypeVar =>
case tp: TypeVar if !tp.inst.exists =>
// supertype not stable, since underlying might change
return tp.underlying.applyIfParameterized(args)
case tp: TypeProxy => tp.superType.applyIfParameterized(args)
Expand Down

0 comments on commit 04e6d5e

Please sign in to comment.