if-then to safe access: fix for qualified 'this' condition #KT-26662 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
b5f73ebd0f
commit
3f2c73b4a9
+10
@@ -0,0 +1,10 @@
|
||||
class Foo
|
||||
|
||||
class Bar {
|
||||
fun Foo?.test() {
|
||||
<caret>if (this@Bar != null) {
|
||||
bar()
|
||||
}
|
||||
}
|
||||
fun bar() {}
|
||||
}
|
||||
Reference in New Issue
Block a user