Ticket #99 (closed enhancement: fixed)

Opened 10 months ago

Last modified 9 months ago

Extend generic advice to apply to parameters, too.

Reported by: stephan Owned by: stephan
Priority: major Milestone: OTDT_1.1.9
Component: language Version: 1.1.8
Keywords: Cc:

Description

Rule OTJLD §4.9.3 defines generic advice wrt. covariant return types. This rule should be extended to

  • cover variance not caused by inheritance but by callin binding (e.g., listing several base methods)
  • cover variance in parameters, too.

This involves small changes to the OTJLD, compiler & tests.

Change History

Changed 10 months ago by stephan

  • status changed from new to assigned

Two-way compatibility of return types is tested in 4.1.40-otjld-callin-replace-compatibility-1 ff. These tests are fixed by r18139, r18142.
Several tests are in fact provided/inspired by Bruno de Fraine.

Initial tests regarding type variables for parameters are in

Changed 9 months ago by stephan

New tests:

Different return types of multiple base methods:

Different parameter types of multiple base methods:

Parameter mapping:

Changed 9 months ago by stephan

  • status changed from assigned to closed
  • resolution set to fixed

Together with above mentioned patches, the new section OTJLD §4.10 as of r18207 plus r18208 completes this issue.

Note: See TracTickets for help on using tickets.