interface A {
default void foo(){}
default void bar(){}
interface B extends A {
void foo();
}
static void main() {
A a = (B) ()->{}; //Triggers S1905 but A is not a valid target for the lambda
}
}
--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/4c5d0c1c-ee84-46a3-b1c7-83e91fe01e64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.