Fixed KT-1295, first part of removing 'println'. Undo part is still not working.

This commit is contained in:
Alefas
2012-02-15 19:38:42 +04:00
parent 4ef61d331b
commit c643b1cf45
8 changed files with 167 additions and 4 deletions
@@ -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)
}
}
}
*/