Adapted IDE to no explicit return type required for public declarations
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@ interface I {
|
||||
fun foo(): String
|
||||
}
|
||||
|
||||
fun bar(): I = object<caret>: I {
|
||||
fun bar()<selection>: I</selection> = object: I {
|
||||
override fun foo(): String {
|
||||
return "a"
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo(): Unit = throw <caret>UnsupportedOperationException()
|
||||
fun foo()<selection>: Unit</selection> = throw UnsupportedOperationException()
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo(): Nothing = throw <caret>UnsupportedOperationException()
|
||||
fun foo()<selection>: Nothing</selection> = throw UnsupportedOperationException()
|
||||
|
||||
@@ -1 +1 @@
|
||||
fun <caret>foo(): String = "abc"
|
||||
fun foo()<selection>: String</selection> = "abc"
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo(): Unit = throw <caret>UnsupportedOperationException()
|
||||
fun foo()<selection>: Unit</selection> = throw UnsupportedOperationException()
|
||||
|
||||
@@ -1 +1 @@
|
||||
fun getText(): String = "xxx"<caret> //TODO
|
||||
fun getText(): String = "xxx" //TODO
|
||||
@@ -1,2 +1,2 @@
|
||||
fun getText(): String = // let's return xxx
|
||||
"xxx"<caret> //TODO
|
||||
"xxx" //TODO
|
||||
@@ -1,2 +1,2 @@
|
||||
fun getText(): String = // let's return xxx
|
||||
"xxx"<caret>
|
||||
"xxx"
|
||||
@@ -1,5 +0,0 @@
|
||||
open class A {
|
||||
protected fun <caret>foo(): String {
|
||||
return "abc"
|
||||
}
|
||||
}
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
open class A {
|
||||
protected fun <caret>foo(): String = "abc"
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
public fun <caret>foo(): String {
|
||||
return "abc"
|
||||
}
|
||||
-1
@@ -1 +0,0 @@
|
||||
public fun <caret>foo(): String = "abc"
|
||||
Reference in New Issue
Block a user