[FIR] Report proper resolution diagnostics from arguments checks

This commit is contained in:
Dmitriy Novozhilov
2021-03-12 11:08:21 +03:00
committed by TeamCityServer
parent 6cc3fff48d
commit 631b771251
8 changed files with 108 additions and 19 deletions
@@ -13,6 +13,6 @@ public class J {
fun test(j: J, nullStr: String?, nullByte: Byte?, nullDouble: Double?) {
j.foo(nullStr)
j.<!NONE_APPLICABLE!>foo<!>(nullDouble)
j.<!INAPPLICABLE_CANDIDATE!>foo<!>(nullDouble)
j.foo(nullByte)
}
@@ -6,7 +6,7 @@ fun foo(x: Int) {}
fun foo(x: Int, y: String) {}
fun bar(nullX: Int?, nullY: String?, notNullY: String) {
<!NONE_APPLICABLE!>foo<!>(nullX)
<!INAPPLICABLE_CANDIDATE!>foo<!>(nullX)
<!INAPPLICABLE_CANDIDATE!>foo<!>(nullX, notNullY)
<!INAPPLICABLE_CANDIDATE!>foo<!>(nullX, nullY)
<!NONE_APPLICABLE!>foo<!>()