Adapted IDE to no explicit return type required for public declarations

This commit is contained in:
Valentin Kipyatkov
2015-09-16 13:07:58 +03:00
parent 1708ac8da3
commit 367b32c309
19 changed files with 9 additions and 80 deletions
@@ -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,3 +1,3 @@
// WITH_RUNTIME
fun foo(): Unit = throw <caret>UnsupportedOperationException()
fun foo()<selection>: Unit</selection> = throw UnsupportedOperationException()
@@ -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,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"
}
}
@@ -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 +0,0 @@
public fun <caret>foo(): String = "abc"