April 19, 2018 [Issue 18780] New: Inconsistent behavior with Variant holding int converting to unsigned types | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=18780 Issue ID: 18780 Summary: Inconsistent behavior with Variant holding int converting to unsigned types Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal Priority: P1 Component: phobos Assignee: nobody@puremagic.com Reporter: alex.jercaianu@gmail.com This code works fine: int x = 7; Variant a = x; assert(a.convertsTo!ulong); This assert however triggers: int x = 7; Variant a = x; assert(a.convertsTo!uint); Is this behavior intended? -- |
Copyright © 1999-2021 by the D Language Foundation