Skip to content

Member access through extension override #481

@bwilkerson

Description

@bwilkerson

The specification states:

An expression of the form MyList(object) or MyList<String>(object) must only be used for extension member access.

but does not define whether that includes both instance and static members or only instance members. Could you clarify whether static members can be accessed this way?

The question arose because the co19 test LanguageFeatures/Extension-methods/static_member_t02.dart attempts to access a static member of an extension through an extension override:

Expect.equals(str, MySmart(str).smartHelper(str));

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