Commit 19510ca
authored
Update Types.scala
Support trivial ranges in ApproximatingTypeMap.distributeArgs
Currently, `distributeArgs` immediately returns `false` for invariant type parameters when encountering a `Range` argument.
However, nothing currently prevents trivial ranges from being constructed (see `paramInstances`). In these cases, the range effectively represents a precise type.1 parent c82b623 commit 19510ca
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6796 | 6796 | | |
6797 | 6797 | | |
6798 | 6798 | | |
6799 | | - | |
6800 | | - | |
| 6799 | + | |
| 6800 | + | |
6801 | 6801 | | |
6802 | 6802 | | |
6803 | 6803 | | |
6804 | 6804 | | |
6805 | | - | |
| 6805 | + | |
| 6806 | + | |
| 6807 | + | |
| 6808 | + | |
| 6809 | + | |
| 6810 | + | |
| 6811 | + | |
6806 | 6812 | | |
6807 | 6813 | | |
6808 | 6814 | | |
| |||
0 commit comments