File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
compiler/src/dotty/tools/dotc/ast Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -560,6 +560,15 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
560560 }
561561 }
562562
563+ override def Inlined (tree : Tree )(call : Tree , bindings : List [MemberDef ], expansion : Tree )(implicit ctx : Context ): Inlined = {
564+ val tree1 = untpd.cpy.Inlined (tree)(call, bindings, expansion)
565+ tree match {
566+ case tree : Inlined if sameTypes(bindings, tree.bindings) && (expansion.tpe eq tree.expansion.tpe) =>
567+ tree1.withTypeUnchecked(tree.tpe)
568+ case _ => ta.assignType(tree1, bindings, expansion)
569+ }
570+ }
571+
563572 override def SeqLiteral (tree : Tree )(elems : List [Tree ], elemtpt : Tree )(implicit ctx : Context ): SeqLiteral = {
564573 val tree1 = untpd.cpy.SeqLiteral (tree)(elems, elemtpt)
565574 tree match {
You can’t perform that action at this time.
0 commit comments