Commit 5ebeb7b
authored
Refine handling of pattern binders for large tuples (#19085)
Extracted from the named tuples PR, where it allowed the correct typing
of
```scala
val bob = (
x0 = 0, x1 = 0, x2 = 0, x3 = 0, x4 = 0, x5 = 0, x6 = 0, x7 = 0, x8 = 0, x9 = 0,
name = "Bob", y1 = 0, age = 33, y2 = 0,
z0 = 0, z1 = 0, z2 = 0, z3 = 0, z4 = 0, z5 = 0, z6 = 0, z7 = 0, z8 = 0, z9 = 0)
bob match
case p @ (name = "Bob", age = a) =>
p,age
```
The problem was that `p` was typed before as `<some large tuple type> &
TupleXXL` and that prevented the correct analysis of tuple elements.
I am submitting this as a separate PR since it might also be relevant
for #19084.1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2434 | 2434 | | |
2435 | 2435 | | |
2436 | 2436 | | |
2437 | | - | |
| 2437 | + | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
| 2441 | + | |
| 2442 | + | |
| 2443 | + | |
2438 | 2444 | | |
2439 | 2445 | | |
2440 | 2446 | | |
| |||
0 commit comments