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

           Summary: std.random.uniform!enum(generator) fails
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Nils <[email protected]> 2013-04-05 17:06:53 PDT 
---
---
cat > test.d <<code
import std.random;
enum E {a}
void main()
{
    auto r = Random(0);
    assert(r.uniform!E() == E.a);
}
code
dmd test.d
./test
---
core.exception.AssertError@test(6): Assertion failure
---
(backtrace omitted)

Pull request is on the way.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to