Refine expression kind definition in postfix templates
- Do not treat if without else as values - Some statements aren't contained in block (see tests) #KT-14107 Fixed #KT-14110 Fixed
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
fun foo() {
|
||||
for (i in 1..9)
|
||||
i.return<caret>
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
fun foo() {
|
||||
for (i in 1..9)
|
||||
return i
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
fun foo(x: Int, y: Int) {
|
||||
if (x > y)
|
||||
x.sout<caret>
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
fun foo(x: Int, y: Int) {
|
||||
if (x > y)
|
||||
println(x)
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
fun foo() {
|
||||
for (i in 1..9)
|
||||
i.sout<caret>
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
fun foo() {
|
||||
for (i in 1..9)
|
||||
println(i)
|
||||
}
|
||||
Reference in New Issue
Block a user