Summary: Forbid abstract attribute for nonabstract methods
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2010-10-29 05:08:34 PDT ---
DMD 2.050beta compiles and runs this code with no errors, but bar() is not
actually abstract:

abstract class Foo {
    abstract void bar() {}
void main() {}

What I expect: A compile-time error, something like:
error(2): abstract method 'bar' of class 'Foo' has a body.

See also bug 2946

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to