We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
jdk8: one java interface: public interface IntefaceA{ default void remove() { throw new UnsupportedOperationException("remove"); } }
public interface IntefaceA{ default void remove() { throw new UnsupportedOperationException("remove"); } }
and one scala calass: class ClassB extends IntefaceA { overide remove() {throw UnsupportedOperationException} }
class ClassB extends IntefaceA { overide remove() {throw UnsupportedOperationException} }
then make a new Java class
public class ClassC extend ClassB{ }
we will compile failed. because the the return type of classB in class file is "Nothing", not void....
The text was updated successfully, but these errors were encountered:
There is an issue not to infer Nothing in override.
Nothing
#7212
Similarly frequent with Option: #7873
Option
The Scala method in the sample shouldn't be procedure syntax a/k/a Unit, which works.
Unit
Sorry, something went wrong.
No branches or pull requests
jdk8:
one java interface:
public interface IntefaceA{ default void remove() { throw new UnsupportedOperationException("remove"); } }
and one scala calass:
class ClassB extends IntefaceA { overide remove() {throw UnsupportedOperationException} }
then make a new Java class
public class ClassC extend ClassB{ }
we will compile failed. because the the return type of classB in class file is "Nothing", not void....
The text was updated successfully, but these errors were encountered: