Skip to content

Compilation failure with @disable #1

Description

@rcorre

Given

struct S {
    mixin Witchcraft;
    @disable bool opEquals;
}

I see

|| ../.dub/packages/witchcraft-0.1.9/witchcraft/source/witchcraft/mixins/methods.d-mixin-168(168,58): Error: function app.S.opEquals is not callable because it is annotated with @disable
|| ../.dub/packages/witchcraft-0.1.9/witchcraft/source/witchcraft/mixins/structs.d(29,51): Error: template instance app.S.Witchcraft!().metaof.WitchcraftMethod!().MethodMixin!(S, "opEquals", 0LU) error instantiating
|| ../.dub/packages/witchcraft-0.1.9/witchcraft/source/witchcraft/mixins/base.d(43,37):        instantiated from here: StructMixin!(S)
|| dmd failed with exit code 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions