Use more specific status to report diagnostics
#KT-12737 Fixed
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun Runnable.test(f: Runnable.(Int) -> Unit) {
|
||||
f(<!TYPE_MISMATCH!>""<!>)
|
||||
}
|
||||
|
||||
fun test(f: Runnable.(Int) -> Unit, runnable: Runnable) {
|
||||
with (runnable) {
|
||||
f(<!TYPE_MISMATCH!>""<!>)
|
||||
}
|
||||
}
|
||||
|
||||
fun Int.test(f: String.(Int) -> Unit) {
|
||||
f("", 0)
|
||||
f(""<!NO_VALUE_FOR_PARAMETER!>)<!>
|
||||
with("") {
|
||||
f(0)
|
||||
f(<!CONSTANT_EXPECTED_TYPE_MISMATCH!>0.0<!>)
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package
|
||||
|
||||
public fun test(/*0*/ f: java.lang.Runnable.(kotlin.Int) -> kotlin.Unit, /*1*/ runnable: java.lang.Runnable): kotlin.Unit
|
||||
public fun java.lang.Runnable.test(/*0*/ f: java.lang.Runnable.(kotlin.Int) -> kotlin.Unit): kotlin.Unit
|
||||
public fun kotlin.Int.test(/*0*/ f: kotlin.String.(kotlin.Int) -> kotlin.Unit): kotlin.Unit
|
||||
Reference in New Issue
Block a user