[Issue 22097] New: 1 should be promoted to long, instead of bool
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jul 2 12:39:19 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22097
Issue ID: 22097
Summary: 1 should be promoted to long, instead of bool
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: blocker
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: ilyayaroshenko at gmail.com
current code fails at runtime. 1 should be promoted to long, instead of bool
static struct S
{
this(bool b)
{
assert(0);
}
this(long l)
{
}
}
auto ss = S(1);
--
More information about the Digitalmars-d-bugs
mailing list