Skip to content

Substitute type parameters when checking assignability of overriding members #862

@lars-reimann

Description

@lars-reimann

When a class D inherits from, say C<Int>, we must substitute the first type parameter of C with Int when we check assignability of overriding members of D.

Possible solution:

  1. Find the overridden member as before.
  2. Find the class containing the member using streamSupertypes.
  3. Substitute type parameters.

Metadata

Metadata

Assignees

Labels

releasedIncluded in a releasevalidation ✔️Improved or new static checks

Type

No type

Projects

Status

✔️ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions