PSI Pattern Matching: Fix matching of !!
#KT-6021 Fixed
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
fun foo(): Int {
|
||||
val s: String? = ""
|
||||
return if (true) {
|
||||
<selection>s!!.length</selection>
|
||||
} else {
|
||||
s!!.length
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
fun foo(): Int {
|
||||
val s: String? = ""
|
||||
val i = s!!.length
|
||||
return if (true) {
|
||||
i
|
||||
} else {
|
||||
i
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user