// FIR_IDENTICAL //KT-3184 Type inference seems partially broken package a import java.util.HashMap private fun test(value: T, extf: String.(value: T)->Unit) { "".extf(value) } fun main() { test(1, {value -> println(value)}) } fun tests() { val dict = HashMap Unit>() dict["0"] = { str -> println(str) } dict["1"] = { println(it) } dict.set("1", { println(it) }) dict["1"] = { r -> println(r) } } // from standard library operator fun MutableMap.set(key : K, value : V) : V? = this.put(key, value) fun println(message : Any?) = System.out.println(message)