@NodeChild(value = "val", type = ExprNode.class)
@Primitive(primitive = "abs", selector = "abs")
@GenerateNodeFactory
public abstract class AbsNode extends ExprNode {
public AbsNode(final Map<String, String> myMap) {}
public abstract int executeEvaluated(int val);
@Specialization
public int abs(final int val) {
return Math.abs(val);
}
}
Let's take the following example:
This currently compiles to:
See the missing
,
between the??
forinstanceof Map<??>
.In earlier versions this used to work.
@chumer looks like a regression, worked on my old May 2018 Truffle :)