mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
variable already assigned: ensure second assignment is raised, simplification (IDEA-202897)
This commit is contained in:
+26
@@ -0,0 +1,26 @@
|
||||
class A {
|
||||
static {
|
||||
c = "c";
|
||||
}
|
||||
static String b = a = "";
|
||||
static String d = <error descr="Variable 'c' might already have been assigned to">c</error> = "";
|
||||
|
||||
static {
|
||||
<error descr="Variable 'a' might already have been assigned to">a</error> = "";
|
||||
}
|
||||
static final String a;
|
||||
static final String c;
|
||||
}
|
||||
class B {
|
||||
{
|
||||
c = "c";
|
||||
}
|
||||
String b = a = "";
|
||||
String d = <error descr="Variable 'c' might already have been assigned to">c</error> = "";
|
||||
|
||||
{
|
||||
<error descr="Variable 'a' might already have been assigned to">a</error> = "";
|
||||
}
|
||||
final String a;
|
||||
final String c;
|
||||
}
|
||||
Reference in New Issue
Block a user