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
Dotty fails to process @FunctionalInterface objects when they contain overridden public methods of java.lang.Object, but javadoc states:
If an interface declares an abstract method overriding one of the public methods of java.lang.Object, that also does not count toward the interface's abstract method count
-- [E081] SyntaxError:MySam.scala:10:46--------------------------------------10|valcomp: java.util.Comparator[Int] = (x, y) =>-1|^|Missing parameter type||I could not infer the typeof the parameter x.
-- [E081] SyntaxError:MySam.scala:10:49--------------------------------------10|valcomp: java.util.Comparator[Int] = (x, y) =>-1|^|Missing parameter type||I could not infer the typeof the parameter y.
two errors found
expectation
The code above should print -1 to the standard output.
The text was updated successfully, but these errors were encountered:
neshkeev
changed the title
Processing of SAM with overridden methods of java.lang.Object fails
Processing SAM with overridden methods of java.lang.Object fails
Oct 3, 2019
Dotty fails to process
@FunctionalInterface
objects when they contain overridden public methods ofjava.lang.Object
, but javadoc states:minimized code
fails with
expectation
The code above should print -1 to the standard output.
The text was updated successfully, but these errors were encountered: