IDEA-182526 Move assignment to field declaration swallows comments

This commit is contained in:
Tagir Valeev
2017-11-24 11:17:26 +07:00
parent e71ffcdb58
commit cb4f3f1a89
4 changed files with 29 additions and 10 deletions

View File

@@ -3,10 +3,11 @@
class X {
int f = 0;
X() {
<caret>}
}
X(int i) {
if (1==1) ;
else {
//sds
}
}
}

View File

@@ -0,0 +1,9 @@
// "Move assignment to field declaration" "true"
class X {
String ff = "";
void f() {
//comment
}
}

View File

@@ -0,0 +1,9 @@
// "Move assignment to field declaration" "true"
class X {
String ff;
void f() {
ff <caret>= ""; //comment
}
}