File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
library/src-3.x/scala/internal/quoted Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -239,9 +239,13 @@ object Matcher {
239
239
240
240
def caseMatches (scrutinee : CaseDef , pattern : CaseDef ) given Env : Option [Tuple ] = {
241
241
val (caseEnv, patternMatch) = patternMatches(scrutinee.pattern, pattern.pattern)
242
- val guardMatch = treeOptMatches(scrutinee.guard, pattern.guard) given caseEnv
243
- val rhsMatch = treeMatches(scrutinee.rhs, pattern.rhs) given caseEnv
244
- foldMatchings(patternMatch, guardMatch, rhsMatch)
242
+
243
+ {
244
+ implied for Env = caseEnv
245
+ val guardMatch = treeOptMatches(scrutinee.guard, pattern.guard)
246
+ val rhsMatch = treeMatches(scrutinee.rhs, pattern.rhs)
247
+ foldMatchings(patternMatch, guardMatch, rhsMatch)
248
+ }
245
249
}
246
250
247
251
/** Check that the pattern trees match and return the contents from the pattern holes.
@@ -312,7 +316,8 @@ object Matcher {
312
316
}
313
317
}
314
318
315
- (treeMatches(scrutineeExpr.unseal, patternExpr.unseal) given Set .empty).asInstanceOf [Option [Tup ]]
319
+ implied for Env = Set .empty
320
+ treeMatches(scrutineeExpr.unseal, patternExpr.unseal).asInstanceOf [Option [Tup ]]
316
321
}
317
322
318
323
/** Joins the mattchings into a single matching. If any matching is `None` the result is `None`.
You can’t perform that action at this time.
0 commit comments