Bug 4921 – Synopsis code in std.variant documentation throws an assertion error

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2010-09-23T07:49:00Z
Last change time
2013-02-26T09:04:56Z
Assigned to
andrei
Creator
daniel.kullmann

Attachments

IDFilenameSummaryContent-TypeSize
766std-variant-fix.patchFix for bugtext/plain2499

Comments

Comment #0 by daniel.kullmann — 2010-09-23T07:49:51Z
Created attachment 766 Fix for bug When running the code from the synopsis in the documentation for std.variant, it throws an assertion error, because one of the asserts is the wrong way round. Attached a patch that also makes the Synopsis code a complete program
Comment #1 by github-bugzilla — 2013-02-26T09:04:12Z