Fixed KT-1295, first part of removing 'println'. Undo part is still not working.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
open class A() {
|
||||
{
|
||||
do println(<selection>1</selection>) while (true)
|
||||
}
|
||||
}
|
||||
/*
|
||||
open class A() {
|
||||
{
|
||||
do {
|
||||
val i = 1
|
||||
println(i)
|
||||
} while (true)
|
||||
}
|
||||
}
|
||||
*/
|
||||
@@ -0,0 +1,7 @@
|
||||
fun x(): Int = println(<selection>1</selection>)
|
||||
/*
|
||||
fun x(): Int {
|
||||
val i = 1
|
||||
println(i)
|
||||
}
|
||||
*/
|
||||
@@ -0,0 +1,13 @@
|
||||
fun a() {
|
||||
if (true) 2
|
||||
else println(<selection>1</selection>)
|
||||
}
|
||||
/*
|
||||
fun a() {
|
||||
if (true) 2
|
||||
else {
|
||||
val i = 1
|
||||
println(i)
|
||||
}
|
||||
}
|
||||
*/
|
||||
@@ -0,0 +1,12 @@
|
||||
fun a() {
|
||||
if (true) println(<selection>1</selection>)
|
||||
else 2
|
||||
}
|
||||
/*
|
||||
fun a() {
|
||||
if (true) {
|
||||
val i = 1
|
||||
println(i)
|
||||
} else 2
|
||||
}
|
||||
*/
|
||||
@@ -0,0 +1,15 @@
|
||||
fun a() {
|
||||
when (1) {
|
||||
is 1 -> println(<selection>2</selection>)
|
||||
}
|
||||
}
|
||||
/*
|
||||
fun a() {
|
||||
when (1) {
|
||||
is 1 -> {
|
||||
val i = 2
|
||||
println(i)
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
@@ -0,0 +1,15 @@
|
||||
open class A() {
|
||||
{
|
||||
while (true) println(<selection>1</selection>)
|
||||
}
|
||||
}
|
||||
/*
|
||||
open class A() {
|
||||
{
|
||||
while (true) {
|
||||
val i = 1
|
||||
println(i)
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
Reference in New Issue
Block a user