KT-11104 extra : name validator introduced for wrap with safe let call

This commit is contained in:
Mikhail Glukhikh
2016-06-13 14:17:54 +03:00
parent 3c49b5f342
commit 230f73acc9
4 changed files with 31 additions and 2 deletions
@@ -0,0 +1,8 @@
// "Wrap with '?.let { ... }' call" "true"
// WITH_RUNTIME
fun foo(x: String?, y: String) {
y.let { bar(<caret>x, it) }
}
fun bar(s: String, t: String) = s.hashCode() + t.hashCode()