Commit 7365595
committed
Teach provablyDisjoint to handle FromJavaObject
SpaceEngine makes use of provablyDisjoint, using its Empty space as a
result. In the test case the scrutinee is of type xs.E, which has info
`>: Nothing <: <FromJavaObject>`, which isn't a subtype of Double and
Double isn't a subtype of it either. But their intersection does exist,
in boxed Double.
The code here is exactly like FromJavaObject is handled in isSubType's
"firstTry".1 parent 7441a13 commit 7365595
File tree
2 files changed
+20
-0
lines changed- compiler/src/dotty/tools/dotc/core
- tests/pos
2 files changed
+20
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2597 | 2597 | | |
2598 | 2598 | | |
2599 | 2599 | | |
| 2600 | + | |
| 2601 | + | |
| 2602 | + | |
| 2603 | + | |
2600 | 2604 | | |
2601 | 2605 | | |
2602 | 2606 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
0 commit comments