Shows how permutations of pre- and post-conditions affect parameter integrity.
application/octet-stream
2158
Comments
Comment #0 by dlang — 2013-02-27T10:34:24Z
Created attachment 1195
Shows how permutations of pre- and post-conditions affect parameter integrity.
In the postcondition of a class method marked as final, method parameters are
in scope, but have corrupted values. This happens if the method has no
precondition, OR a precondition that doesn't access any function parameters.
Tested with dmd git v2.060-1496-g2352d02 on OS X 10.8.2.
Comment #1 by maxim — 2013-02-27T10:44:18Z
I can reproduce on linux, remove OS specific tag.
Comment #2 by robert.schadek — 2024-12-13T18:04:22Z