KT-8574 'Convert to block body' inserts spurious < token
#KT-8574 Fixed
This commit is contained in:
@@ -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 { })
|
||||
}
|
||||
Reference in New Issue
Block a user