Skip to content

Commit 66ae931

Browse files
committed
Desugar#makeAnnotated: Avoid unnecessary typing
The less typing we do during Namer, the better.
1 parent 60fb657 commit 66ae931

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/ast/Desugar.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ object desugar {
584584
* tree @cls
585585
*/
586586
def makeAnnotated(cls: Symbol, tree: Tree)(implicit ctx: Context) =
587-
Annotated(TypedSplice(tpd.New(cls.typeRef, Nil)), tree)
587+
Annotated(untpd.New(untpd.TypeTree(cls.typeRef), Nil), tree)
588588

589589
private def derivedValDef(named: NameTree, tpt: Tree, rhs: Tree, mods: Modifiers) =
590590
ValDef(named.name.asTermName, tpt, rhs).withMods(mods).withPos(named.pos)

0 commit comments

Comments
 (0)