Does not replace explicit lambda parameter with 'it' if conflicting nested literal available #KT-11849 Fixed
This commit is contained in:
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
// IS_APPLICABLE: false
|
||||
|
||||
inline fun <T, R> T.let(block: (T) -> R): R = block(this)
|
||||
|
||||
fun foo(arg: Any?): Int? {
|
||||
return arg?.let {
|
||||
<caret>x -> x.toString().let {
|
||||
x.hashCode() + it.hashCode()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user