KT-8574 'Convert to block body' inserts spurious < token

#KT-8574 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-07-24 21:21:52 +03:00
parent e09fadae51
commit 977bf593e0
11 changed files with 88 additions and 5 deletions
@@ -0,0 +1 @@
fun f() = <caret>object { }
@@ -0,0 +1,3 @@
fun f(): Any {
return object { }
}
@@ -0,0 +1,3 @@
interface I
fun f() = <caret>object : I { }
@@ -0,0 +1,5 @@
interface I
fun f(): I {
return object : I { }
}
@@ -0,0 +1,6 @@
interface I1
interface I2
fun f() {
fun g() = <caret>object : I1, I2 { }
}
@@ -0,0 +1,8 @@
interface I1
interface I2
fun f() {
fun g(): Any {
return object : I1, I2 { }
}
}
@@ -0,0 +1,5 @@
// WITH_RUNTIME
interface I
fun f() = <caret>listOf(object : I { })
@@ -0,0 +1,7 @@
// WITH_RUNTIME
interface I
fun f(): List<I> {
return listOf(object : I { })
}