Convert to single return: fix for incorrect code

This commit is contained in:
Tagir Valeev
2019-03-20 10:47:52 +07:00
parent b115bc03d8
commit a26ebd6de8
4 changed files with 23 additions and 5 deletions
@@ -0,0 +1,6 @@
// "Transform body to single exit-point form" "true"
class Test {
String test(String s) {
return "foo";
}
}
@@ -0,0 +1,7 @@
// "Transform body to single exit-point form" "true"
class Test {
String <caret>test(String s) {
return "foo";
return "bar";
}
}