File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ object Typer {
118118 * apply of a function class?
119119 */
120120 private [typer] def isSyntheticApply (tree : tpd.Tree ): Boolean = tree match {
121- case tree : tpd.Select => tree.hasAttachment(InsertedApply )
121+ case _ : ( tpd.Select | tpd. Apply ) => tree.hasAttachment(InsertedApply )
122122 case TypeApply (fn, targs) => isSyntheticApply(fn) && targs.forall(_.isInstanceOf [tpd.InferredTypeTree ])
123123 case _ => false
124124 }
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ object Module {
55 case 1 => Any *: Fill [0 ]
66 }
77 extension[N <: Int ] (f : Fun [N ])
8- def apply : Fill [N ] => Any = ???
8+ def apply () : Fill [N ] => Any = ???
99
10- Fun [1 ]()(??? )
10+ Fun [1 ]()()( ??? )
1111}
You can’t perform that action at this time.
0 commit comments