Fixed nullability for return and parameter types in SAM-adapters

This commit is contained in:
Valentin Kipyatkov
2015-07-29 14:37:17 +03:00
parent 321bf40b65
commit cb9ef9e1f0
12 changed files with 143 additions and 18 deletions
@@ -0,0 +1,10 @@
// FILE: KotlinFile.kt
fun foo(javaInterface: JavaInterface) {
javaInterface.doIt(null, null) { }
javaInterface.doIt("", { }, null)
}
// FILE: JavaInterface.java
public interface JavaInterface {
void doIt(String s, Runnable runnable1, Runnable runnable2);
}