"Remove redundant toString": fix false positive for nested nullable

So #KT-24557 Fixed
This commit is contained in:
Toshiaki Kameyama
2018-05-25 05:27:46 +03:00
committed by Mikhail Glukhikh
parent 4038d4d507
commit 8969e7a6e1
5 changed files with 34 additions and 3 deletions
@@ -0,0 +1,7 @@
// IS_APPLICABLE: false
// WITH_RUNTIME
data class Foo(val name: String)
fun nullable2(foo: Foo?) {
val s: String = foo?.name.toString()<caret>
}