Commit ff83d77
committed
Fix #7959: Don't check Java symbols for private leaks
Java does not have the same rules as Scala here. Also, there are problems
with package[private] which is translated to private[pkg]. In the test case,
the constructor is assumed to be visible up to the package (because it
is always annotated as such) which is further than the enclosing private class.1 parent 193f7de commit ff83d77
File tree
3 files changed
+8
-1
lines changed- compiler/src/dotty/tools/dotc
- core
- typer
- tests/pos
3 files changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
| 547 | + | |
547 | 548 | | |
548 | 549 | | |
549 | 550 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
| 165 | + | |
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments