Files
kotlin-fork/compiler/visualizer/testData/rawBuilder/expressions/arrayAssignment.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

30 lines
715 B
Kotlin
Vendored

fun test() {
// IntArray
// │ fun intArrayOf(vararg Int): IntArray
// │ │ Int
// │ │ │ Int
// │ │ │ │ Int
// │ │ │ │ │
val x = intArrayOf(1, 2, 3)
// val test.x: IntArray
// │ Int Int
// │ │ │
x[1] = 0
}
// Int
// │ Int
// │ │
fun foo() = 1
fun test2() {
// fun intArrayOf(vararg Int): IntArray
// │ Int
// │ │ Int
// │ │ │ Int
// │ │ │ │ fun foo(): Int
// │ │ │ │ │ Int
// │ │ │ │ │ │
intArrayOf(1, 2, 3)[foo()] = 1
}