Skip to content

Commit 9f168ea

Browse files
committed
Fix quoted match inline bindings leak
1 parent 8a5b198 commit 9f168ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/src/scala/internal/quoted/Matcher.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ private[quoted] object Matcher {
3333
if (hasTypeSplices) {
3434
val ctx: Context = internal.Context_GADT_setFreshGADTBounds(rootContext)
3535
given Context = ctx
36-
val matchings = scrutineeTerm.underlyingArgument =?= patternTerm.underlyingArgument
36+
val matchings = scrutineeTerm =?= patternTerm
3737
// After matching and doing all subtype checks, we have to approximate all the type bindings
3838
// that we have found and seal them in a quoted.Type
3939
matchings.asOptionOfTuple.map { tup =>
@@ -44,7 +44,7 @@ private[quoted] object Matcher {
4444
}
4545
}
4646
else {
47-
scrutineeTerm.underlyingArgument =?= patternTerm.underlyingArgument
47+
scrutineeTerm =?= patternTerm
4848
}
4949
}
5050

0 commit comments

Comments
 (0)