[Issue 9231] New: overriding inout funcion with attribute inference reports weird error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 28 04:14:16 PST 2012


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

           Summary: overriding inout funcion with attribute inference
                    reports weird error
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: k.hara.pg at gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2012-12-28 04:14:14 PST ---
Following code should be compiled but doesn't.

class B { void foo() inout pure {} }
class D : B { override void foo() inout {} }

output:
Error: variable test.D.foo.this inout variables can only be declared inside
inout functions

-- 
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