-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Unable to find class in inherited scope #12566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Scala 2 works, presumably due to fixes to looking up Java-defined members in Java sources. The previous behavior was that statics belong to companions in the Scala language model and are not inherited. |
(don't mind me, I typo'd the number of the issue I was trying to reference with that PR) |
It would be good to know when and how this was fixed in Scala 2. The normal behavior is that |
Perhaps with terms
|
@som-snytt That looks like the probaby fix, yes. Maybe we can get a volunteer to forward port it? |
Closing as a duplicate of #6138 then |
OK I see someone is already looking into the other ticket. Oh wait, that was 2019. OSS is hard. |
Compiler version
Using Scala 3.0.0, I am unable to compile Java code that is generated by protoc (protobuf compiler). The following is a minimized version of the generated code to demonstrate the issue.
Minimized code
The Scala code doesn't matter, but it needs to exist:
Output
Expectation
Should compile with no errors.
Workaround
Adding
compileOrder := CompileOrder.JavaThenScala
results in successful compilation.The text was updated successfully, but these errors were encountered: