Skip to content

example demonstrating that subtrait methods can refer to supertrait methods #26115

@tshepang

Description

@tshepang

It would be nice to have an example for the following sentence (source):

In an implementation of Circle for a given type T, methods can refer to Shape methods, since the typechecker checks that any type with an implementation of Circle also has an implementation of Shape.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions