IDEA-68563 complete current statement generates invalid cod

Corrected completion of 'return' expression inside non-void method
This commit is contained in:
Denis Zhdanov
2011-07-12 18:11:52 +04:00
parent 7e7773d3c8
commit 9ec2ec69b9
5 changed files with 98 additions and 18 deletions

View File

@@ -0,0 +1,7 @@
public class Foo {
public String foo() {
return String.valueOf(
1<caret>
)
}
}

View File

@@ -0,0 +1,7 @@
public class Foo {
public String foo() {
return String.valueOf(
1
);<caret>
}
}