Ticket #200 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Visibilty of inherited public fields

Reported by: mosconi Owned by: stephan
Priority: minor Milestone: OTDT_1.2.8
Component: compiler Version: 1.2.5
Keywords: Cc:

Description

If a role class R1 extends a regular class C1, public fields inherited from C1 are not visible on the interface of role R1.

public class C1 {
    public String test;
}
public team class T1 {
    public class R1 extends C1 {}
    void test(C1 c, R1 r) {
        String cs = c.test;
        String rs = r.test; // gives an error
    }
}

Change History

Changed 3 years ago by stephan

  • status changed from new to accepted
  • milestone set to OTDT_1.3.0

Changed 3 years ago by stephan

  • status changed from accepted to closed
  • resolution set to fixed
  • milestone changed from OTDT_1.3.0 to OTDT_1.2.8

Tests are in 1.4.11-otjld-field-of-regular-super-1 ff.

Fix is in r19849.

Note: See TracTickets for help on using tickets.