KT-11805 Invert if-condition intention breaks code in case of end of line comment

#KT-11805 Fixed
This commit is contained in:
Valentin Kipyatkov
2016-04-07 10:57:03 +03:00
parent b258af5288
commit 22a4bbe1aa
4 changed files with 17 additions and 1 deletions
@@ -0,0 +1,4 @@
fun foo(p: String?): Int? {
<caret>if (p == null) return null
return p.hashCode() // comment
}