Introduce Parameter: Java -> Kotlin Interoperability

This commit is contained in:
Alexey Sedunov
2015-04-14 20:09:15 +03:00
parent 93861e16c8
commit f13eb038e1
15 changed files with 376 additions and 11 deletions
@@ -0,0 +1,12 @@
fun test() {
J().foo(1, 2, 3)
K().foo(1, 2, 3)
}
abstract class K0 {
abstract fun foo(a: Int, b: Int, c: Int): Int
}
open class K: K0() {
override fun foo(a: Int, b: Int, c: Int) = a + b + c
}