Overriding attribute defined on interface: multiple equations

Issue #133 new
Niklas Fors created an issue

JastAdd reports error when defining an attribute on an interface and then overriding the attribute in a class that implements the interface.

Input:

A;

aspect Test {
    interface I { }
    A implements I;
    syn boolean I.attr() = false;
    eq A.attr() = false;
}

Output:

Error at test.jrag:5: multiple equations for synthesized attribute A.attr, previously defined in test.jrag:6

JastAdd version:

JastAdd2 jenkins-JastAdd2-431

Comments (0)

  1. Log in to comment