34 lines
637 B
Kotlin
Vendored
34 lines
637 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM
|
|
|
|
// FILE: indySamConversionViaProxyFun.kt.kt
|
|
inline fun ifn() {}
|
|
|
|
fun test() {
|
|
// Proxy functions shouldn't clash
|
|
use(Sam1(String?::plus))
|
|
use(Sam1(String?::plus))
|
|
use(Sam1(String?::plus))
|
|
|
|
// Proxy function for inline fun should be non-synthetic
|
|
use(Sam2(::ifn))
|
|
|
|
// Proxy function for arrayOf fun should be non-synthetic
|
|
use(Sam3(::intArrayOf))
|
|
}
|
|
|
|
fun use(x: Any) {}
|
|
|
|
// FILE: Sam1.java
|
|
public interface Sam1 {
|
|
String get(String x, Object y);
|
|
}
|
|
|
|
// FILE: Sam2.java
|
|
public interface Sam2 {
|
|
void run();
|
|
}
|
|
|
|
// FILE: Sam3.java
|
|
public interface Sam3 {
|
|
int[] get(int[] s);
|
|
} |