KT-11104 extra : "wrap with safe let call" is now applicable for argument type mismatches
This commit is contained in:
committed by
Mikhail Glukhikh
parent
47c1106d5d
commit
3c49b5f342
@@ -0,0 +1,8 @@
|
||||
// "Wrap with '?.let { ... }' call" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo(x: String?) {
|
||||
bar(<caret>x)
|
||||
}
|
||||
|
||||
fun bar(s: String) = s.hashCode()
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Wrap with '?.let { ... }' call" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo(x: String?) {
|
||||
x?.let { bar(it) }
|
||||
}
|
||||
|
||||
fun bar(s: String) = s.hashCode()
|
||||
Reference in New Issue
Block a user