[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
+4
-4
@@ -38,7 +38,7 @@ fun test() {
|
||||
|
||||
if (out != null && ins != null || out != null) {
|
||||
ins?.read();
|
||||
ins.<!INAPPLICABLE_CANDIDATE!>read<!>();
|
||||
ins.<!NONE_APPLICABLE!>read<!>();
|
||||
out.println();
|
||||
}
|
||||
|
||||
@@ -114,12 +114,12 @@ fun test() {
|
||||
}
|
||||
else {
|
||||
out?.println();
|
||||
out.<!INAPPLICABLE_CANDIDATE!>println<!>();
|
||||
out.<!NONE_APPLICABLE!>println<!>();
|
||||
}
|
||||
|
||||
if (out == null || out.println() == Unit) {
|
||||
out?.println();
|
||||
out.<!INAPPLICABLE_CANDIDATE!>println<!>();
|
||||
out.<!NONE_APPLICABLE!>println<!>();
|
||||
}
|
||||
else {
|
||||
out.println();
|
||||
@@ -149,7 +149,7 @@ fun test() {
|
||||
|
||||
while (out2 == null) {
|
||||
out2?.println();
|
||||
out2.<!INAPPLICABLE_CANDIDATE!>println<!>();
|
||||
out2.<!NONE_APPLICABLE!>println<!>();
|
||||
}
|
||||
out2.println()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user