K2: Avoid inference diagnostics when arguments are already error typed
For example, NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER
It became especially relevant after 0e84bf2053
that together with later commits bring a lot of unnecessary
NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER diagnostic
This commit is contained in:
committed by
Space Team
parent
564b40f05d
commit
fe5adab652
+1
-1
@@ -13,7 +13,7 @@ fun test() {
|
||||
A.<!OPT_IN_USAGE_ERROR!>entries<!>
|
||||
A.Companion.entries
|
||||
|
||||
<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>with<!>(A) {
|
||||
with(A) {
|
||||
entries
|
||||
this.entries
|
||||
<!UNRESOLVED_REFERENCE!>values<!>() // to be sure that we don't resolve into synthetic 'values'
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ fun test() {
|
||||
A.<!OPT_IN_USAGE_ERROR!>entries<!>
|
||||
A.Companion.entries
|
||||
|
||||
<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>with<!>(A) {
|
||||
with(A) {
|
||||
entries
|
||||
this.entries
|
||||
<!UNRESOLVED_REFERENCE!>values<!>() // to be sure that we don't resolve into synthetic 'values'
|
||||
|
||||
Reference in New Issue
Block a user