Files
kotlin-fork/compiler/visualizer/testData/rawBuilder/expressions/arrayAccess.kt
T
Ivan Cilcic fe328f8c7a Add some additional information to psi renderer
1) Trim unused spaces in annotations
2) Rewrote fq name rendering
3) Added annotations to for loop variable
4) Added type arguments render along to type parameters in functions
2019-08-30 11:50:32 +03:00

26 lines
1.3 KiB
Kotlin
Vendored

// Int Int
// │ │
val p = 0
// Int
// │ Int
// │ │
fun foo() = 1
class Wrapper(val v: IntArray)
// Int
// │ 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]