if-then to safe access: report even if condition in parentheses #KT-26662 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
6d9fb4f382
commit
b5f73ebd0f
+9
@@ -0,0 +1,9 @@
|
||||
class Some {
|
||||
fun bar() {}
|
||||
}
|
||||
|
||||
fun Some?.foo() {
|
||||
<caret>if (((this) != null)) {
|
||||
bar()
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
class Some {
|
||||
fun bar() {}
|
||||
}
|
||||
|
||||
fun Some?.foo() {
|
||||
this?.bar()
|
||||
}
|
||||
Reference in New Issue
Block a user