← Back to index
|
Original Bugzilla link
Bug 9231 – overriding inout funcion with attribute inference reports weird error
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-12-28T04:14:00Z
Last change time
2013-03-05T21:36:45Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg
Comments
Comment #0
by k.hara.pg — 2012-12-28T04:14:14Z
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
Comment #1
by k.hara.pg — 2012-12-28T04:26:49Z
https://github.com/D-Programming-Language/dmd/pull/1419
Comment #2
by github-bugzilla — 2013-03-04T18:02:38Z
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
Comment #3
by github-bugzilla — 2013-03-05T21:36:45Z
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.