KT-950 wrong call to array-like setter with non-void return type
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import java.util.*
|
||||
|
||||
fun <K, V> Map<K, V>.set(k : K, v : V) = put(k, v)
|
||||
|
||||
fun box() : String {
|
||||
val map = HashMap<String,String>()
|
||||
map["239"] = "932"
|
||||
return if(map["239"] == "932") "OK" else "fail"
|
||||
}
|
||||
Reference in New Issue
Block a user