Skip to content

supertrait methods should be callable on object types #4100

Closed
@brson

Description

@brson

Bound type parameters can call supertrait methods, objects should be able to as well.

trait A { fn f() }
trait B: A { }

fn foo(b: &B) {
    b.f()
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions