24 lines
1.2 KiB
Kotlin
Vendored
24 lines
1.2 KiB
Kotlin
Vendored
// Int Int
|
|
// │ │
|
|
val p = 0
|
|
// Int
|
|
// │
|
|
fun foo() = 1
|
|
|
|
class Wrapper(val v: IntArray)
|
|
|
|
// test.a: IntArray
|
|
// │ Int
|
|
// │ │ fun (Int).plus(Int): Int
|
|
// │ │ │ test.a: IntArray
|
|
// │ │ │ │ val p: Int
|
|
// │ │ │ │ │ fun (Int).plus(Int): Int
|
|
// │ │ │ │ │ │ test.a: IntArray
|
|
// │ │ │ │ │ │ │ fun foo(): Int
|
|
// │ │ │ │ │ │ │ │ fun (Int).plus(Int): Int
|
|
// │ │ │ │ │ │ │ │ │ test.w: Wrapper
|
|
// │ │ │ │ │ │ │ │ │ │ val (Wrapper).v: IntArray
|
|
// │ │ │ │ │ │ │ │ │ │ │ Int
|
|
// │ │ │ │ │ │ │ │ │ │ │ │
|
|
fun test(a: IntArray, w: Wrapper) = a[0] + a[p] + a[foo()] + w.v[0]
|