// WITH_STDLIB fun simple() { // Int Int // │ │ var x = 10 // var simple.x: Int // │ fun (Int).plus(Int): Int // │ │ Int // │ │ │ x += 20 // var simple.x: Int // │ fun (Int).minus(Int): Int // │ │ Int // │ │ │ x -= 5 // var simple.x: Int // │ fun (Int).div(Int): Int // │ │ Int // │ │ │ x /= 5 // var simple.x: Int // │ fun (Int).times(Int): Int // │ │ Int // │ │ │ x *= 10 } // collections/List // │ fun List.modify() { // fun collections/Collection.plus(T): collections/List // │ this += "Alpha" // fun collections/Collection.plus(T): collections/List // │ this += "Omega" } fun Any.modify() { // collections/List // │ fun collections/Collection.plus(T): collections/List // │ │ Int // │ │ │ (this as List) += 42 }