We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03df624 commit 6a7a9faCopy full SHA for 6a7a9fa
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -105,7 +105,7 @@ object Typer {
105
*/
106
private[typer] def isSyntheticApply(tree: tpd.Tree): Boolean = tree match {
107
case tree: tpd.Select => tree.hasAttachment(InsertedApply)
108
- case TypeApply(fn, targs) if targs.forall(_.isInstanceOf[tpd.InferredTypeTree]) => isSyntheticApply(fn)
+ case TypeApply(fn, targs) => isSyntheticApply(fn) && targs.forall(_.isInstanceOf[tpd.InferredTypeTree])
109
case _ => false
110
}
111
0 commit comments