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 0655707 commit 6544215Copy full SHA for 6544215
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -3341,7 +3341,7 @@ object Types {
3341
override def show(using Context) = "FlexibleType("+tp.show+")"
3342
def underlying(using Context) : Type = this.tp
3343
def derivedFlexibleType(under: Type)(using Context): Type =
3344
- FlexibleType(under)
+ if this.tp eq under then this else FlexibleType(under)
3345
override def computeHash(bs: Binders): Int = doHash(bs, tp)
3346
override def toString = "FlexibleType(%s)".format(tp)
3347
//override def hash = NotCached
0 commit comments