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 5a7ac03 commit 916fe1bCopy full SHA for 916fe1b
src/dotty/tools/dotc/core/Types.scala
@@ -2401,7 +2401,7 @@ object Types {
2401
/** The non-variant type bounds or alias type with given bounds */
2402
def derivedTypeBounds(lo: Type, hi: Type)(implicit ctx: Context) =
2403
if ((lo eq this.lo) && (hi eq this.hi) && (variance == 0)) this
2404
- else TypeBounds.orAlias(lo, hi)
+ else TypeBounds.real(lo, hi)
2405
2406
/** If this is an alias, a derived alias with the new variance,
2407
* Otherwise the type itself.
0 commit comments