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 dcc3c17 commit 0827f5eCopy full SHA for 0827f5e
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -3365,7 +3365,7 @@ object Types {
3365
override def show(using Context) = "FlexibleType("+tp.show+")"
3366
def underlying(using Context) : Type = this.tp
3367
def derivedFlexibleType(under: Type)(using Context): Type =
3368
- FlexibleType(under)
+ if this.tp eq under then this else FlexibleType(under)
3369
override def computeHash(bs: Binders): Int = doHash(bs, tp)
3370
override def toString = "FlexibleType(%s)".format(tp)
3371
//override def hash = NotCached
0 commit comments