Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds an check for @disabled functions that have an body; closes #897 #898

Conversation

Mai-Lapyst
Copy link
Contributor

This PR adds an check for functions (and also con-/destructors) that have the @disable attribute and also have a body:

class C1
{
        @disable this() {}
        @disable { this() {} }
        this() @disable {}

        @disable void doThing() {}
        @disable doThing() {}
        @disable { void doThing() {} }
        void doThing() @disable {}

        @disable ~this() {}
        @disable { ~this() {} }
        ~this() @disable {} 
}

@WebFreak001 WebFreak001 force-pushed the fix-897-disabled-funcs-with-body branch from ac3431b to 06052c6 Compare May 9, 2023 01:52
@WebFreak001 WebFreak001 force-pushed the fix-897-disabled-funcs-with-body branch from 06052c6 to 82c9e64 Compare May 9, 2023 01:53
@WebFreak001 WebFreak001 merged commit f37faf8 into dlang-community:master May 9, 2023
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants