[Issue 4921] New: Synopsis code in std.variant documentation does throw an assertion error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 23 07:50:31 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4921

           Summary: Synopsis code in std.variant documentation does throw
                    an assertion error
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: daniel.kullmann at gmx.net


--- Comment #0 from Daniel Kullmann <daniel.kullmann at gmx.net> 2010-09-23 07:49:51 PDT ---
Created an attachment (id=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

-- 
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