Bug 9414 – Incorrect modification inside contracts is not detected on virtual function

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-01-27T23:50:00Z
Last change time
2013-04-03T01:31:39Z
Keywords
accepts-invalid, pull, wrong-code
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2013-01-27T23:50:06Z
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; } }
Comment #1 by k.hara.pg — 2013-01-28T04:01:51Z
Comment #2 by github-bugzilla — 2013-04-03T01:20:00Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/9e44ca31cc1f772722988da7f1a34f6a7c0feeb5 fix Issue 9414 - Incorrect modification inside contracts is not detected on virtual function https://github.com/D-Programming-Language/dmd/commit/80de2b74d847fe38102cd32c69ffbbfacaaaf3a8 Merge pull request #1569 from 9rnsr/fix_contracts Issue 9413 & 9414 - Detect incorrect modification inside contracts