Thread overview
[Issue 9231] New: overriding inout funcion with attribute inference reports weird error
Dec 28, 2012
Kenji Hara
Dec 28, 2012
Kenji Hara
Mar 05, 2013
Walter Bright
December 28, 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@puremagic.com
        ReportedBy: k.hara.pg@gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg@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: -------
December 28, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9231


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2012-12-28 04:26:49 PST ---
https://github.com/D-Programming-Language/dmd/pull/1419

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 05, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9231



--- Comment #2 from github-bugzilla@puremagic.com 2013-03-04 18:02:38 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/6be7b32b8f923758099a4a368e1ef2fb723988cd
fix Issue 9231 - overriding inout funcion with attribute inference reports
weird error

https://github.com/D-Programming-Language/dmd/commit/3b3d42e1c30cc5ba04c15628852a41f61bfb76c4 Merge pull request #1419 from 9rnsr/fix9231

Issue 9231 - overriding inout funcion with attribute inference reports weird error

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 05, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9231


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 06, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9231



--- Comment #3 from github-bugzilla@puremagic.com 2013-03-05 21:36:45 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/druntime

https://github.com/D-Programming-Language/druntime/commit/c16e1210c20b6afb6ae2158405311b830a1ff16a Remove redundant attributes

Bug 9231 has already fixed, so attribute inference now works correctly with inout method.

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