Summary: regression, in contracts are not allowed in overriden
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD

--- Comment #0 from Witold Baryluk <> 2010-11-21 
18:27:41 PST ---
Minimal test case:

module strange_override_bug;

interface K {
    void f();

class A(int m) : K {
    override void f()
    in { }
    body { }

class B : A!(2) {
    void f() { }

strange_override_bug.d(8): Error: variable strange_override_bug.A!(2).A.f.this
override cannot be applied to variable
strange_override_bug.d(9): Error: function
strange_override_bug.A!(2).A.f.__require override only applies to class member

Compile with "in { }" line commented out!
Compiles also if i remove "override" keyword" (and it do not warn my about

Was working in 2.049.

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

Reply via email to