Skip to content

Allow specification of override #3

Description

@listrophy

There is probably a compiler error in this situation:

class Parent {
    var description: String { "Some description" }
}

@Inscribe class Child: Parent {} // compiler error

Allow an (override: true) parameter:

class Parent {
    var description: String { "Some description" }
}

@Inscribe(override: true) class Child: Parent {}
// expands to:
class Child: Parent {}
extension Child {
    override var description: String { "Child" }
    override static var description: String { "Child" }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions