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
We cannot compile them together cause and get a compilation error
"Error:Error:line (6)error: error overriding method foo in class MyJavaClass
of type ()scala.this.Int;
method foo has weaker access privileges; it should be at least
protected[aaa]
protected def foo: Int = 42"
But if MyJavaClass is already compiled and added to appropriate classpath we can compile our MyScalaClass without any problems.
The text was updated successfully, but these errors were encountered:
Java class
Scala class
We cannot compile them together cause and get a compilation error
"Error:Error:line (6)error: error overriding method foo in class MyJavaClass
of type ()scala.this.Int;
method foo has weaker access privileges; it should be at least
protected[aaa]
protected def foo: Int = 42"
But if MyJavaClass is already compiled and added to appropriate classpath we can compile our MyScalaClass without any problems.
The text was updated successfully, but these errors were encountered: