Nested generic types

Issue #246 resolved
Jesper Öqvist created an issue

JastAdd2 2.1.13-82-g51973c2

Nested generic types do not seem to work in the latest version of JastAdd. Test case:

// Test parsing of generic inner class.
// .result=COMPILE_PASS
import java.util.Collection;

aspect Test {
  interface Test<T> {
    public void f(T o);

    class Inner<U> extends Test<U> {
      @Override
      public void f(U o) {
      }
    }
  }
}

This gave a syntax error by JastAdd on the <U> part of Inner<U>.

Comments (2)

  1. Log in to comment