Skip to content

Commit

Permalink
Combine conditions for TypeApply in isSyntheticApply
Browse files Browse the repository at this point in the history
Co-authored-by: odersky <[email protected]>
  • Loading branch information
2 people authored and Kordyjan committed Sep 15, 2022
1 parent 03df624 commit 6a7a9fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/typer/Typer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ object Typer {
*/
private[typer] def isSyntheticApply(tree: tpd.Tree): Boolean = tree match {
case tree: tpd.Select => tree.hasAttachment(InsertedApply)
case TypeApply(fn, targs) if targs.forall(_.isInstanceOf[tpd.InferredTypeTree]) => isSyntheticApply(fn)
case TypeApply(fn, targs) => isSyntheticApply(fn) && targs.forall(_.isInstanceOf[tpd.InferredTypeTree])
case _ => false
}

Expand Down

0 comments on commit 6a7a9fa

Please sign in to comment.