[FIR] Improve diagnostic reporting & don't use error symbol for candidate if possible
Also introduce few new diagnostics: - NONE_APPLICABLE more many inapplicable candidates - HIDDEN for visible candidates
This commit is contained in:
committed by
Mikhail Glukhikh
parent
5c0528b61e
commit
f283f2db43
@@ -14,7 +14,7 @@ class B : A() {
|
||||
fun test() {
|
||||
foo()
|
||||
bar()
|
||||
<!INAPPLICABLE_CANDIDATE!>buz<!>()
|
||||
<!NONE_APPLICABLE!>buz<!>()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ FILE: simple.kt
|
||||
public final fun test(): R|kotlin/Unit| {
|
||||
this@R|/B|.R|/B.foo|()
|
||||
this@R|/B|.R|/B.bar|()
|
||||
<Inapplicable(PARAMETER_MAPPING_ERROR): [/B.buz, /A.buz]>#()
|
||||
<Ambiguity: buz, [/B.buz, /A.buz]>#()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -24,5 +24,5 @@ FILE: supertypeGenericsComplex.kt
|
||||
}
|
||||
public final fun f(list: R|kotlin/collections/MutableList<X>|, s: R|kotlin/collections/MutableList<kotlin/CharSequence>|): R|kotlin/Unit| {
|
||||
R|/C.C|().R|FakeOverride</C.f: R|kotlin/Unit|>|<R|X|>(R|<local>/list|, R|<local>/s|)
|
||||
R|/C.C|().<Inapplicable(INAPPLICABLE): [/C.f]>#(R|<local>/s|, R|<local>/list|)
|
||||
R|/C.C|().<Inapplicable(INAPPLICABLE): /C.f>#<R|kotlin/CharSequence|>(R|<local>/s|, R|<local>/list|)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user