ChangeFunctionReturnTypeFix for TYPE_MISMATCH error

This commit is contained in:
Wojciech Lopata
2013-04-24 14:32:44 +02:00
parent 893cbd6b48
commit 9b11db7a74
7 changed files with 43 additions and 0 deletions
@@ -0,0 +1,2 @@
// "Change 'foo' function return type to 'String'" "true"
fun foo(): String = <caret>""
@@ -0,0 +1,4 @@
// "Change 'foo' function return type to 'String'" "true"
fun foo(): String {
return ""<caret>
}
@@ -0,0 +1,2 @@
// "Change 'foo' function return type to 'String'" "true"
fun foo(): Int = <caret>""
@@ -0,0 +1,4 @@
// "Change 'foo' function return type to 'String'" "true"
fun foo() {
return ""<caret>
}