Skip to content

Commit 1d39644

Browse files
committed
allow inlined to fix #8029
1 parent 49efae0 commit 1d39644

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,8 @@ 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-
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-
}
45+
assert(fn.isInstanceOf[RefTree] || fn.isInstanceOf[GenericApply[_]] || fn.isInstanceOf[Inlined])
46+
ta.assignType(untpd.Apply(fn, args), fn, args)
5147
}
5248

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

0 commit comments

Comments
 (0)