dlang-community / D-Scanner

Swiss-army knife for D source code
Boost Software License 1.0
240 stars 80 forks source link

Warn about functions that are `@disable` but have an function body #897

Closed Mai-Lapyst closed 1 year ago

Mai-Lapyst commented 1 year ago

D-Scanner should warn about functions that have the @disable annotation but also have an body, like this:

class C1
{
    @disable this() {}

    @disable doSome() {}
}

References: