Skip to content

Commit 49efae0

Browse files
committed
fixed #8029
1 parent 54ab00e commit 49efae0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

compiler/src/dotty/tools/dotc/ast/tpd.scala

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,12 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
4242
Super(qual, if (mixName.isEmpty) untpd.EmptyTypeIdent else untpd.Ident(mixName), inConstrCall, mixinClass)
4343

4444
def Apply(fn: Tree, args: List[Tree])(implicit ctx: Context): Apply = {
45-
assert(fn.isInstanceOf[RefTree] || fn.isInstanceOf[GenericApply[_]])
46-
ta.assignType(untpd.Apply(fn, args), fn, args)
45+
fn match {
46+
case Inlined(o,b,e) => Apply(e,args)
47+
case _ =>
48+
assert(fn.isInstanceOf[RefTree] || fn.isInstanceOf[GenericApply[_]])
49+
ta.assignType(untpd.Apply(fn, args), fn, args)
50+
}
4751
}
4852

4953
def TypeApply(fn: Tree, args: List[Tree])(implicit ctx: Context): TypeApply = {

0 commit comments

Comments
 (0)