Skip to content

Commit 2d09b0d

Browse files
committed
Remove dealiasing of infered quoted types
1 parent 84edb13 commit 2d09b0d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

compiler/src/dotty/tools/dotc/typer/Synthesizer.scala

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,8 @@ class Synthesizer(typer: Typer)(using @constructorOnly c: Context):
5757
ctx.compilationUnit.needsStaging = true // We will need to run ReifyQuotes
5858
ref(defn.InternalQuoted_typeQuote).appliedToType(t)
5959
formal.argInfos match
60-
case arg :: Nil =>
61-
val deepDealias = new TypeMap:
62-
def apply(tp: Type): Type = mapOver(tp.dealias)
63-
quotedType(deepDealias(arg))
64-
case _ =>
65-
EmptyTree
60+
case arg :: Nil => quotedType(arg)
61+
case _ => EmptyTree
6662
end synthesizedTypeTag
6763

6864
val synthesizedTupleFunction: SpecialHandler = (formal, span) =>

0 commit comments

Comments
 (0)