mirror of
https://github.com/moparisthebest/fernflower
synced 2024-12-23 08:08:49 -05:00
Fixed ' IDEA-128685: Incorrectly typed assignment expression'
This commit is contained in:
parent
c672e5bc83
commit
929056d727
@ -65,7 +65,7 @@ public class AssignmentExprent extends Exprent {
|
||||
|
||||
|
||||
public VarType getExprType() {
|
||||
return right.getExprType();
|
||||
return left.getExprType();
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,5 +1,8 @@
|
||||
package unit.classes;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class TestClassTypes {
|
||||
|
||||
public void testBoolean() {
|
||||
@ -18,4 +21,16 @@ public class TestClassTypes {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void testAssignmentType(List list) {
|
||||
|
||||
List a = list;
|
||||
|
||||
if(a != null) {
|
||||
(a = new ArrayList(a)).add("23");
|
||||
}
|
||||
|
||||
System.out.println(a.size());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,5 +1,7 @@
|
||||
package unit.classes;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class TestClassTypes {
|
||||
|
||||
@ -17,4 +19,13 @@ public class TestClassTypes {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void testAssignmentType(List var1) {
|
||||
Object var2 = var1;
|
||||
if(var1 != null) {
|
||||
((List)(var2 = new ArrayList(var1))).add("23");
|
||||
}
|
||||
|
||||
System.out.println(((List)var2).size());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user