Fix generation of bridges for lambdas

#KT-8447 Fixed
This commit is contained in:
Alexander Udalov
2015-07-10 19:19:37 +03:00
parent 5dc28f1313
commit 290983687d
4 changed files with 30 additions and 10 deletions

View File

@@ -0,0 +1,3 @@
interface GenericInterface<T> {
public T foo(double d, int i, long j, short s);
}

View File

@@ -0,0 +1,9 @@
fun getInterface(): GenericInterface<String> {
return GenericInterface { d, i, j, s ->
"OK"
}
}
fun box(): String {
return getInterface().foo(0.0, 0, 0, 0)
}