Ticket #166 (closed enhancement: fixed)
Report ambiguities in cases of optional lowering
| Reported by: | stephan | Owned by: | stephan |
|---|---|---|---|
| Priority: | minor | Milestone: | OTDT_1.3.0_M3 |
| Component: | language | Version: | 1.2.4 |
| Keywords: | Cc: |
Description
In a role R bound to base B I had a constructor
protected R(R other) { base(...); }
Now any role creation with an R argument
R r1 = ... R r2 = new R(r1);
was ambiguous: in addition to the explicit constructor given above the implicit lifting constructor (R(B b)) was applicable by implicitly lowering the argument r1.
B.1.1-otjld-sh-70 gives a witness where actually the lifting constructor is chosen, because the explicit constructor has insufficient visibility.
The compiler should report something here, but also the OTJLD should mention something to which the warnings/errors could refer.
Change History
Note: See
TracTickets for help on using
tickets.
all news
RSS feed