Parsing of array constructor references

Issue #323 resolved
Markus Olsson created an issue

Using JastAdd 2.3.4

Minimal example:

import java.util.function.IntFunction;

aspect Test {
    public String[] ASTNode.test(IntFunction<String[]> a) {
        return a.apply(0);

    public void ASTNode.test2() {

Produces this error message:

 [java] Problems during JRAG parsing:
 [java] Error at Test.jrag:9:20: unexpected token "[":
 [java]         test(String[]::new);

Comments (2)

  1. Log in to comment