Skip to content

Commit 6a7a9fa

Browse files
KacperFKorbanodersky
authored andcommitted
Combine conditions for TypeApply in isSyntheticApply
Co-authored-by: odersky <[email protected]>
1 parent 03df624 commit 6a7a9fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/typer/Typer.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ object Typer {
105105
*/
106106
private[typer] def isSyntheticApply(tree: tpd.Tree): Boolean = tree match {
107107
case tree: tpd.Select => tree.hasAttachment(InsertedApply)
108-
case TypeApply(fn, targs) if targs.forall(_.isInstanceOf[tpd.InferredTypeTree]) => isSyntheticApply(fn)
108+
case TypeApply(fn, targs) => isSyntheticApply(fn) && targs.forall(_.isInstanceOf[tpd.InferredTypeTree])
109109
case _ => false
110110
}
111111

0 commit comments

Comments
 (0)