PSI Pattern Matching: Fix matching of !!

#KT-6021 Fixed
This commit is contained in:
Alexey Sedunov
2014-10-15 14:08:45 +04:00
parent 6f5a2172ac
commit b18b888161
6 changed files with 59 additions and 0 deletions
@@ -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
}
}