You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- [E049] Reference Error: .\src\code\Code.java:8:27 ---------------------------
8 | public List<Long> work(List<Integer> list) {
| ^^^^
| Reference to List is ambiguous.
| It is both imported by import bug.util._
| and imported subsequently by import java.util._
|
| longer explanation available when compiling with `-explain`
-- [E049] Reference Error: .\src\code\Code.java:8:11 ---------------------------
8 | public List<Long> work(List<Integer> list) {
| ^^^^
| Reference to List is ambiguous.
| It is both imported by import bug.util._
| and imported subsequently by import java.util._
|
| longer explanation available when compiling with `-explain`
Expectation
Scala code compiles successfully in mixed mode, like in Scala 2.13.11.
The text was updated successfully, but these errors were encountered:
dwijnand
changed the title
Java parser handling of wildcard (on-demand) imports is incorrect
Java type name resolution with wildcard imports is incorrect
Oct 31, 2024
Compiler version
3.3.1
Minimized code
Repo (branch
1
)TLDR:
Output
Expectation
Scala code compiles successfully in mixed mode, like in Scala 2.13.11.
The text was updated successfully, but these errors were encountered: