// FIR_IGNORE fun foo() { // Int // │fun (Int).rangeTo(Int): ranges/IntRange // Int ││ Int // │ ││ │ for (i in 1..10) { // fun io/println(Int): Unit // │ val foo.i: Int // │ │ println(i) } } // collections/List // │ fun bar(list: List) { // bar.list: collections/List // │ fun (collections/List).subList(Int, Int): collections/List // │ │ Int // String │ │ │ Int // │ │ │ │ │ for (element in list.subList(0, 10)) { // fun io/println(Any?): Unit // │ val bar.element: String // │ │ println(element) } // bar.list: collections/List // │ fun (collections/List).subList(Int, Int): collections/List // │ │ fun io/println(Any?): Unit // String │ │ Int Int │ val bar.element: String // │ │ │ │ │ │ │ for (element in list.subList(10, 20)) println(element) } data class Some(val x: Int, val y: Int) // collections/Set // │ fun baz(set: Set) { // Int // │ Int baz.set: collections/Set // │ │ │ for ((x, y) in set) { // fun io/println(Any?): Unit // │ val baz.x: Int // │ │ val baz.y: Int // │ │ │ println("x = $x y = $y") } }