[Issue 8337] using contracts on an interface makes the compiler frontend segfault

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 6 23:29:35 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=8337


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla at digitalmars.com
         Resolution|                            |WORKSFORME


--- Comment #2 from Walter Bright <bugzilla at digitalmars.com> 2013-10-06 23:29:32 PDT ---
Updating the code to:
---------
interface Edge {
    int estimate()
        out{ }
}

class DefaultEdge : Edge {
    int estimate()
        out{ }
        body{
            return 1;
        }
}

class DefaultDownEdge : DefaultEdge {
    override int estimate()
        out{ }
        body{
            return 1;
        }
}
----------------
and it compiles without error with dmd 2.064 head.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list