FIR: transform implicit type ref in anonymous function arguments & body
^KT-45010 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
a841a0bbca
commit
5f9357eb41
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
// KT-45010
|
||||
fun foo(map: MutableMap<Int, String>) {
|
||||
map.<!INAPPLICABLE_CANDIDATE!>getOrPut<!>("Not an Int") {
|
||||
"Hello" + " world"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// KT-45010
|
||||
fun foo(map: MutableMap<Int, String>) {
|
||||
map.getOrPut(<!TYPE_MISMATCH!>"Not an Int"<!>) {
|
||||
"Hello" + " world"
|
||||
}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package
|
||||
|
||||
public fun foo(/*0*/ map: kotlin.collections.MutableMap<kotlin.Int, kotlin.String>): kotlin.Unit
|
||||
Reference in New Issue
Block a user