PSI2IR: SAM conversion in varargs
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
// !LANGUAGE: +NewInference +FunctionalInterfaceConversion +SamConversionPerArgument
|
||||
fun interface MyRunnable {
|
||||
fun run()
|
||||
}
|
||||
|
||||
fun test(a: Any, r: MyRunnable) {
|
||||
if (a is MyRunnable) {
|
||||
foo({}, r, a)
|
||||
}
|
||||
}
|
||||
|
||||
fun foo(vararg rs: MyRunnable) {}
|
||||
Reference in New Issue
Block a user