mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Fix generation of bridges for lambdas
#KT-8447 Fixed
This commit is contained in:
3
compiler/testData/codegen/boxAgainstJava/sam/adapters/doubleLongParameters.java
vendored
Normal file
3
compiler/testData/codegen/boxAgainstJava/sam/adapters/doubleLongParameters.java
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
interface GenericInterface<T> {
|
||||
public T foo(double d, int i, long j, short s);
|
||||
}
|
||||
9
compiler/testData/codegen/boxAgainstJava/sam/adapters/doubleLongParameters.kt
vendored
Normal file
9
compiler/testData/codegen/boxAgainstJava/sam/adapters/doubleLongParameters.kt
vendored
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user