Skip to content

Commit

Permalink
Possible fix for SI-2712
Browse files Browse the repository at this point in the history
  • Loading branch information
smarter committed Nov 20, 2015
1 parent ea1ee47 commit c6f4ebf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dotty/tools/dotc/core/TypeApplications.scala
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,8 @@ class TypeApplications(val self: Type) extends AnyVal {
def tryLift(bcs: List[ClassSymbol]): Boolean = bcs match {
case bc :: bcs1 =>
val tp = self.baseTypeWithArgs(bc)
val targs = tp.argInfos
//val targs = tp.argInfos
val targs = tp.argInfos.takeRight(Math.min(tp.argInfos.length, tparams.length))
val tycon = tp.withoutArgs(targs)
def variancesMatch(param1: Symbol, param2: Symbol) =
param2.variance == param2.variance || param2.variance == 0
Expand Down

0 comments on commit c6f4ebf

Please sign in to comment.