if-then to safe access: report even if condition in parentheses #KT-26662 Fixed

This commit is contained in:
Toshiaki Kameyama
2018-09-10 13:13:57 +09:00
committed by Mikhail Glukhikh
parent 6d9fb4f382
commit b5f73ebd0f
4 changed files with 23 additions and 2 deletions
@@ -0,0 +1,9 @@
class Some {
fun bar() {}
}
fun Some?.foo() {
<caret>if (((this) != null)) {
bar()
}
}
@@ -0,0 +1,7 @@
class Some {
fun bar() {}
}
fun Some?.foo() {
this?.bar()
}