Skip to content

Commit 916fe1b

Browse files
committed
Make derivedTypeBounds always create real TypeBounds.
1 parent 5a7ac03 commit 916fe1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/core/Types.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2401,7 +2401,7 @@ object Types {
24012401
/** The non-variant type bounds or alias type with given bounds */
24022402
def derivedTypeBounds(lo: Type, hi: Type)(implicit ctx: Context) =
24032403
if ((lo eq this.lo) && (hi eq this.hi) && (variance == 0)) this
2404-
else TypeBounds.orAlias(lo, hi)
2404+
else TypeBounds.real(lo, hi)
24052405

24062406
/** If this is an alias, a derived alias with the new variance,
24072407
* Otherwise the type itself.

0 commit comments

Comments
 (0)