FIR IDE: add HLConvertToBlockBodyIntention
This commit is contained in:
committed by
TeamCityServer
parent
030749eaeb
commit
55e7cc7ea3
@@ -0,0 +1 @@
|
||||
org.jetbrains.kotlin.idea.fir.intentions.HLConvertToBlockBodyIntention
|
||||
@@ -0,0 +1,5 @@
|
||||
@Target(AnnotationTarget.EXPRESSION)
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
annotation class ann
|
||||
|
||||
fun foo(): Int = <caret>(@ann 1)
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
@Target(AnnotationTarget.EXPRESSION)
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
annotation class ann
|
||||
|
||||
fun foo(): Int {
|
||||
return (@ann 1)
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo(): String {
|
||||
return java.io.File("x").getAbsolutePath()
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun <caret>foo() = java.io.File("x").list()
|
||||
@@ -0,0 +1,5 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo(): Array<out String>? {
|
||||
return java.io.File("x").list()
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo(): Array<out String?>? {
|
||||
return java.io.File("x").list()
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
fun foo(): Int = <caret>(ann@ 1)
|
||||
@@ -0,0 +1,3 @@
|
||||
fun foo(): Int {
|
||||
return (ann@ 1)
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
interface I1
|
||||
interface I2
|
||||
|
||||
fun f() {
|
||||
fun g(): I1 {
|
||||
return object : I1, I2 { }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user