From 3deb86780674f6ae9f79c38927b8b50c0fc5fc0b Mon Sep 17 00:00:00 2001 From: Katarzyna Marek Date: Wed, 24 Apr 2024 15:37:39 +0200 Subject: [PATCH] fix tests --- .../main/dotty/tools/pc/utils/InteractiveEnrichments.scala | 1 - .../test/dotty/tools/pc/tests/hover/HoverTermSuite.scala | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/presentation-compiler/src/main/dotty/tools/pc/utils/InteractiveEnrichments.scala b/presentation-compiler/src/main/dotty/tools/pc/utils/InteractiveEnrichments.scala index c5b3f593ddc6..fb41e8859801 100644 --- a/presentation-compiler/src/main/dotty/tools/pc/utils/InteractiveEnrichments.scala +++ b/presentation-compiler/src/main/dotty/tools/pc/utils/InteractiveEnrichments.scala @@ -401,7 +401,6 @@ object InteractiveEnrichments extends CommonMtagsEnrichments: def deepDealias(using Context): Type = tpe.dealias match case app @ AppliedType(tycon, params) => - // we dealias applied type params by hand, because `dealias` doesn't do it AppliedType(tycon, params.map(_.deepDealias)) case aliasingBounds: AliasingBounds => aliasingBounds.derivedAlias(aliasingBounds.alias.dealias) diff --git a/presentation-compiler/test/dotty/tools/pc/tests/hover/HoverTermSuite.scala b/presentation-compiler/test/dotty/tools/pc/tests/hover/HoverTermSuite.scala index 319f0941238f..b51974b00fb0 100644 --- a/presentation-compiler/test/dotty/tools/pc/tests/hover/HoverTermSuite.scala +++ b/presentation-compiler/test/dotty/tools/pc/tests/hover/HoverTermSuite.scala @@ -654,7 +654,7 @@ class HoverTermSuite extends BaseHoverSuite: |""".stripMargin ) - @Test def `dealias-type-members-in-structural-types-1`: Unit = + @Test def `dealias-type-members-in-structural-types1`: Unit = check( """object Obj { | trait A extends Sup { self => @@ -669,7 +669,7 @@ class HoverTermSuite extends BaseHoverSuite: """def member: Int""".stripMargin.hover ) - @Test def `dealias-type-members-in-structural-types-2`: Unit = + @Test def `dealias-type-members-in-structural-types2`: Unit = check( """object Obj: | trait A extends Sup { self =>