[Issue 3667] New: broken out(result) in contracts
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jan 3 11:33:26 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3667
Summary: broken out(result) in contracts
Product: D
Version: 2.038
Platform: Other
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: netrino at inbox.ru
--- Comment #0 from Ludwig <netrino at inbox.ru> 2010-01-03 11:33:25 PST ---
Regression bug since 2.037. For example in such code:
import std.stdio;
int mul100(int n)
out(result)
{
writeln("result == ", result);
}
body
{
return n * 100;
}
int main()
{
mul100(5);
return 0;
}
compiled with -debug output is always
result == 0 and should be result == 500
--
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