[Issue 9414] New: Incorrect modification inside contracts is not detected on virtual function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jan 27 23:50:10 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9414
Summary: Incorrect modification inside contracts is not
detected on virtual function
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: accepts-invalid, wrong-code
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> 2013-01-27 23:50:06 PST ---
This code should be compile error, but doesn't.
class C
{
int foo(int x) // or 'final'
in
{
x = 10; // L6
}
out(r)
{
x = 10; // L10
}
body
{
return 1;
}
}
--
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