JVM_IR indy SAM conversions: update tests
KT-44278 KT-26060 KT-42621
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// JVM_TARGET: 1.8
|
||||
// SAM_CONVERSIONS: INDY
|
||||
|
||||
fun interface IFooAny {
|
||||
fun foo(): Any
|
||||
}
|
||||
|
||||
fun interface IFooInt : IFooAny {
|
||||
override fun foo(): Int
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val test = IFooInt { 42 }
|
||||
if (test.foo() != 42)
|
||||
return "Failed"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user