File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -176,13 +176,13 @@ object Applications {
176
176
def productArity : Int = app.productArity
177
177
def productElement (n : Int ): Any = app.productElement(n)
178
178
}
179
-
179
+
180
180
/** The unapply method of this extractor also recognizes ExtMethodApplys in closure blocks.
181
181
* This is necessary to deal with closures as left arguments of extension method applications.
182
182
* A test case is i5606.scala
183
183
*/
184
184
object ExtMethodApply {
185
- def apply (app : Tree ) = new ExtMethodApply (app)
185
+ def apply (app : Tree )( implicit ctx : Context ) = new ExtMethodApply (app)
186
186
def unapply (tree : Tree )(implicit ctx : Context ): Option [Tree ] = tree match {
187
187
case tree : ExtMethodApply => Some (tree.app)
188
188
case Block (stats, ExtMethodApply (app)) => Some (tpd.cpy.Block (tree)(stats, app))
You can’t perform that action at this time.
0 commit comments