Commit 1114824
committed
Don't approximate a type using
Approximate range(Nothing, hi) to Nothing & hi instead of Nothing. This avoids
creating TypeRefs with a Nothing prefix which manifest themselves down the line
with an error like:
Cannot resolve reference to type path.type.AbsMember.
The classfile defining the type might be missing from the classpath.
val z1 = transition(di).ext(1) // error
^
Due to a MissingType thrown from TypeErasure#sigName
Fixes #23530Nothing as prefix1 parent 03a54a7 commit 1114824
File tree
2 files changed
+36
-3
lines changed- compiler/src/dotty/tools/dotc/core
- tests/pos
2 files changed
+36
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6482 | 6482 | | |
6483 | 6483 | | |
6484 | 6484 | | |
6485 | | - | |
6486 | | - | |
6487 | | - | |
| 6485 | + | |
| 6486 | + | |
| 6487 | + | |
| 6488 | + | |
| 6489 | + | |
| 6490 | + | |
| 6491 | + | |
| 6492 | + | |
| 6493 | + | |
| 6494 | + | |
| 6495 | + | |
| 6496 | + | |
| 6497 | + | |
| 6498 | + | |
| 6499 | + | |
| 6500 | + | |
| 6501 | + | |
| 6502 | + | |
6488 | 6503 | | |
6489 | 6504 | | |
6490 | 6505 | | |
| |||
| 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 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments