Skip to content

Class inheritance is source-order-dependent #30

@zhiayang

Description

@zhiayang

Basically, your base class must appear in the source code before your derived class. This will not work:

class A : B
{
    // ...
}

class B 
{
    // ...
}

Which is contrary to how the rest of the language works.

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