join declaration and assignment (IDEA-92226; IDEA-123689)

This commit is contained in:
Anna Kozlova
2014-04-14 21:38:56 +02:00
parent b708f2006e
commit 9d3b4638ce
17 changed files with 263 additions and 40 deletions
@@ -0,0 +1,6 @@
// "Join declaration and assignment" "true"
class Test {
{
String ss = "hello";
}
}
@@ -0,0 +1,6 @@
// "Join declaration and assignment" "true"
class Test {
{
String ss = "hello", a = "";
}
}
@@ -0,0 +1,6 @@
// "Join declaration and assignment" "true"
class Test {
{
String ss = "hello" + "world";
}
}
@@ -0,0 +1,7 @@
// "Join declaration and assignment" "true"
class Test {
{
String s<caret>s = "";
ss = "hello";
}
}
@@ -0,0 +1,8 @@
// "Join declaration and assignment" "false"
class Test {
{
String s<caret>s = "";
System.out.println(ss);
ss = "hello";
}
}
@@ -0,0 +1,7 @@
// "Join declaration and assignment" "true"
class Test {
{
String s<caret>s = "", a = "";
ss = "hello";
}
}
@@ -0,0 +1,7 @@
// "Join declaration and assignment" "true"
class Test {
{
String ss = "hello";
ss +<caret>= "world";
}
}
@@ -0,0 +1,7 @@
// "Join declaration and assignment" "false"
class Test {
{
String ss = "hello";
ss +<caret>= ss;
}
}