File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
compiler/src/dotty/tools/dotc/ast Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -474,9 +474,8 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
474
474
475
475
override def Apply (tree : Tree )(fun : Tree , args : List [Tree ])(implicit ctx : Context ): Apply = {
476
476
val untyped = untpd.cpy.Apply (tree)(fun, args)
477
- val typed = ta.assignType(untyped, fun, args)
478
477
if (untyped.ne(tree))
479
- typed
478
+ ta.assignType(untyped, fun, args)
480
479
else
481
480
tree.asInstanceOf [Apply ]
482
481
}
@@ -488,9 +487,8 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
488
487
489
488
override def TypeApply (tree : Tree )(fun : Tree , args : List [Tree ])(implicit ctx : Context ): TypeApply = {
490
489
val untyped = untpd.cpy.TypeApply (tree)(fun, args)
491
- val typed = ta.assignType(untyped, fun, args)
492
490
if (untyped.ne(tree))
493
- typed
491
+ ta.assignType(untyped, fun, args)
494
492
else
495
493
tree.asInstanceOf [TypeApply ]
496
494
You can’t perform that action at this time.
0 commit comments