Do not report ACCIDENTAL_OVERRIDE on SAM adapters and such

This commit is contained in:
Andrey Breslav
2014-06-06 12:47:29 +04:00
parent 6bbc8ea951
commit 622b7e3740
3 changed files with 38 additions and 0 deletions
@@ -0,0 +1,27 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
// FILE: p/Sam.java
package p;
public interface Sam {
void sam();
}
// FILE: p/Foo.java
package p;
public class Foo {
public void foo(Sam sam);
}
// FILE: k.kt
import p.*
// to have enough fake overrides
open class K0 : Foo()
class K : K0() {
fun foo(f: () -> Unit) {}
}