Skip to content

Commit cdfc76e

Browse files
Merge pull request #9714 from dotty-staging/umprove-implementation-of-ExprMap
Improve implementation of ExprMap
2 parents 0f757c5 + eb69acb commit cdfc76e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

library/src-bootstrapped/scala/quoted/util/ExprMap.scala

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,8 @@ trait ExprMap {
6262
New.copy(tree)(transformTypeTree(tpt))
6363
case Typed(expr, tpt) =>
6464
val tp = tpt.tpe match
65-
// TODO improve code
6665
case AppliedType(TypeRef(ThisType(TypeRef(NoPrefix(), "scala")), "<repeated>"), List(tp0: Type)) =>
67-
// TODO rewrite without using quotes
68-
type T
69-
val qtp: quoted.Type[T] = tp0.seal.asInstanceOf[quoted.Type[T]]
70-
given qtp.type = qtp
71-
'[Seq[T]].unseal.tpe
66+
Type(classOf[Seq[_]]).appliedTo(tp0)
7267
case tp => tp
7368
Typed.copy(tree)(transformTerm(expr, tp), transformTypeTree(tpt))
7469
case tree: NamedArg =>

0 commit comments

Comments
 (0)