@@ -156,7 +156,7 @@ object Matcher {
156
156
// that we have found and seal them in a quoted.Type
157
157
matchings.asOptionOfTuple.map { tup =>
158
158
Tuple .fromArray(tup.toArray.map { // TODO improve performance
159
- case x : SymBinding => qctx.tasty.Constraints_approximation (summon[ Context ])( x.sym, ! x.fromAbove).seal
159
+ case x : SymBinding => qctx.tasty.Constraints_approximation (x.sym, ! x.fromAbove).seal
160
160
case x => x
161
161
})
162
162
}
@@ -173,7 +173,7 @@ object Matcher {
173
173
// that we have found and seal them in a quoted.Type
174
174
matchings.asOptionOfTuple.map { tup =>
175
175
Tuple .fromArray(tup.toArray.map { // TODO improve performance
176
- case x : SymBinding => qctx.tasty.Constraints_approximation (summon[ Context ])( x.sym, ! x.fromAbove).seal
176
+ case x : SymBinding => qctx.tasty.Constraints_approximation (x.sym, ! x.fromAbove).seal
177
177
case x => x
178
178
})
179
179
}
@@ -318,7 +318,7 @@ object Matcher {
318
318
fn1 =?= fn2 &&& args1 =?= args2
319
319
320
320
case (Block (stats1, expr1), Block (binding :: stats2, expr2)) if isTypeBinding(binding) =>
321
- qctx.tasty.Constraints_add (summon[ Context ])( binding.symbol :: Nil )
321
+ qctx.tasty.Constraints_add (binding.symbol :: Nil )
322
322
matched(new SymBinding (binding.symbol, hasFromAboveAnnotation(binding.symbol))) &&& Block (stats1, expr1) =?= Block (stats2, expr2)
323
323
324
324
/* Match block */
@@ -335,7 +335,7 @@ object Matcher {
335
335
336
336
case (scrutinee, Block (typeBindings, expr2)) if typeBindings.forall(isTypeBinding) =>
337
337
val bindingSymbols = typeBindings.map(_.symbol)
338
- qctx.tasty.Constraints_add (summon[ Context ])( bindingSymbols)
338
+ qctx.tasty.Constraints_add (bindingSymbols)
339
339
bindingSymbols.foldRight(scrutinee =?= expr2)((x, acc) => matched(new SymBinding (x, hasFromAboveAnnotation(x))) &&& acc)
340
340
341
341
/* Match if */
0 commit comments