Commit 47a3cbf
committed
Combine cases of
If we reach the second case of `Zip[T1 <: Tuple, T2 <: Tuple]`,
then we know `T1` and `T2` are both disjoint from `NonEmptyTuple`.
From which I believe we can conclude they are both subtypes of `EmptyTuple`.
I went with `(EmptyTuple, EmptyTuple)` for the 2nd pattern,
although I believe it should be equivalent to a wildcard pattern,
for the same reason as described above.Tuple.Zip disjoint from (h1 *: t1, h2 *: t2)
1 parent 7a0230d commit 47a3cbf
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
179 | 178 | | |
180 | | - | |
| 179 | + | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
185 | | - | |
| 184 | + | |
186 | 185 | | |
187 | 186 | | |
188 | 187 | | |
| |||
0 commit comments