← Back to index
|
Original Bugzilla link
Bug 9746 – Incorrect method parameters in out-block of `final` class member functions
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-03-18T05:12:50Z
Last change time
2018-03-28T11:00:48Z
Keywords
wrong-code
Assigned to
No Owner
Creator
Denis Shelomovskii
Comments
Comment #0
by verylonglogin.reg — 2013-03-18T05:12:50Z
--- import std.stdio; class Class { final void f(int val) in { // Uncomment to detrigger the issue // writefln("in %s: %s", &val, val); } out { writefln("out %s: %s", &val, val); assert(val == 7); } body { writefln("body %s: %s", &val, val); } } void main(string[] args) { (new Class).f(7); } --- Output (one can see 0x10 address shift here): --- body 12FDF8: 7 out 12FDE8: 1245036 core.exception.AssertError@main(14): Assertion failure ---
Comment #1
by yebblies — 2014-09-12T09:47:56Z
*** Issue 8134 has been marked as a duplicate of this issue. ***
Comment #2
by bitter.taste — 2018-03-28T11:00:48Z
No problem for master.