Compare commits
2 Commits
cfc419b98e
...
ed1be59546
| Author | SHA1 | Date | |
|---|---|---|---|
| ed1be59546 | |||
| 42fabc115e |
@@ -1,6 +1,4 @@
|
||||
import java.lang.Integer;
|
||||
import java.lang.Double;
|
||||
import java.lang.Number;
|
||||
import java.lang.String;
|
||||
|
||||
public record R(String n) {}
|
||||
|
||||
@@ -1521,6 +1521,7 @@ public class Codegen {
|
||||
// For Strings we must use equals, and why not make it work for all types?
|
||||
generate(state, new TargetLocalVar(cur.type, cur.name));
|
||||
generate(state, ep.expression());
|
||||
boxPrimitive(state, ep.expression().type());
|
||||
state.mv.visitMethodInsn(INVOKESTATIC, "java/util/Objects", "equals", "(Ljava/lang/Object;Ljava/lang/Object;)Z", false);
|
||||
|
||||
var cont = new Label();
|
||||
|
||||
Reference in New Issue
Block a user