Skip to content

Commit 1788368

Browse files
committed
Fixed language imports
And added a neg test that verifies that import language.noAutoTupling indeed disables auto-tupling. Also added back comment that @DarkDimius found missing.
1 parent b5864b4 commit 1788368

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,9 @@ class TypeComparer(initctx: Context) extends DotClass {
894894
// this does not change anything semantically (i.e. merging or not merging
895895
// gives =:= types), but it keeps the type smaller.
896896
case tp1: RefinedType =>
897+
// opportunistically merge same-named refinements
898+
// this does not change anything semantically (i.e. merging or not merging
899+
// gives =:= types), but it keeps the type smaller.
897900
tp2 match {
898901
case tp2: RefinedType if tp1.refinedName == tp2.refinedName =>
899902
tp1.derivedRefinedType(

0 commit comments

Comments
 (0)