FIR: Rework receivers processing in resolution
- Put extensionReceiver to candidate even if it's explicit (for sake of clarity) - Split CheckReceiver (dispatch part should only check nullability)
This commit is contained in:
Vendored
+3
-3
@@ -17,7 +17,7 @@ fun CharSequence?.isNullOrEmpty(): Boolean {
|
||||
fun smartcastOnReceiver(s: String?) {
|
||||
with(s) {
|
||||
if (isNullOrEmpty()) {
|
||||
length
|
||||
<!INAPPLICABLE_CANDIDATE!>length<!>
|
||||
}
|
||||
else {
|
||||
length
|
||||
@@ -32,7 +32,7 @@ fun mixedReceiver(s: String?) {
|
||||
}
|
||||
} else {
|
||||
with(s) {
|
||||
length
|
||||
<!INAPPLICABLE_CANDIDATE!>length<!>
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+3
-3
@@ -17,7 +17,7 @@ fun CharSequence?.isNullOrEmpty(): Boolean {
|
||||
fun smartcastOnReceiver(s: String?) {
|
||||
with(s) {
|
||||
if (isNullOrEmpty()) {
|
||||
length
|
||||
<!INAPPLICABLE_CANDIDATE!>length<!>
|
||||
}
|
||||
else {
|
||||
length
|
||||
@@ -32,7 +32,7 @@ fun mixedReceiver(s: String?) {
|
||||
}
|
||||
} else {
|
||||
with(s) {
|
||||
length
|
||||
<!INAPPLICABLE_CANDIDATE!>length<!>
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user