We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c4ce8b0 + 6a7a9fa commit ccb53a9Copy full SHA for ccb53a9
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, _) => isSyntheticApply(fn)
+ case TypeApply(fn, targs) => isSyntheticApply(fn) && targs.forall(_.isInstanceOf[tpd.InferredTypeTree])
109
case _ => false
110
}
111
tests/pos/i15969.scala
@@ -0,0 +1,7 @@
1
+object Obj {
2
+ def apply[L]: Unit = ???
3
+
4
+ extension (make: Unit) def apply(value: Int): String = ???
5
6
+ def test: String = Obj[Int](1)
7
+}
0 commit comments