We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac19a03 commit 0b252faCopy full SHA for 0b252fa
compiler/src/dotty/tools/dotc/core/TypeApplications.scala
@@ -15,7 +15,7 @@ import NameKinds._
15
import Flags._
16
import StdNames.tpnme
17
import util.Positions.Position
18
-import config.Printers.core
+import config.Printers.{core, typr}
19
import collection.mutable
20
import dotty.tools.dotc.config.Config
21
import java.util.NoSuchElementException
@@ -423,7 +423,7 @@ class TypeApplications(val self: Type) extends AnyVal {
423
case TypeBounds(lo, hi) =>
424
val v = tparam.paramVariance
425
val avoidParams = new ApproximatingTypeMap {
426
- variance = v
+ variance = if (v >= 0) 1 else -1
427
def apply(t: Type) = t match {
428
case t: TypeRef if typParams contains t.symbol =>
429
val bounds = apply(t.info).bounds
0 commit comments