Skip to content

Allow specification of override #3

@listrophy

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" }

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