File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ object Decorators {
204
204
* give more info about type variables and to disambiguate where needed.
205
205
*/
206
206
def ex (args : Any * )(implicit ctx : Context ): String =
207
- explained(implicit ctx => em(args : _* ))
207
+ explained(em(args : _* ))
208
208
}
209
209
210
210
implicit class ArrayInterpolator [T <: AnyRef ](val arr : Array [T ]) extends AnyVal {
Original file line number Diff line number Diff line change @@ -252,9 +252,9 @@ object Formatting {
252
252
* ex"disambiguate $tpe1 and $tpe2"
253
253
* ```
254
254
*/
255
- def explained (op : Context => String )(implicit ctx : Context ): String = {
255
+ def explained (op : given Context => String )(implicit ctx : Context ): String = {
256
256
val seen = new Seen
257
- val msg = op( explainCtx(seen) )
257
+ val msg = op given explainCtx (seen)
258
258
val addendum = explanations(seen)
259
259
if (addendum.isEmpty) msg else msg ++ " \n\n " ++ addendum
260
260
}
You can’t perform that action at this time.
0 commit comments