Bug 22097 – 1 should be promoted to long, instead of bool
Status
RESOLVED
Resolution
DUPLICATE
Severity
blocker
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-07-02T12:39:19Z
Last change time
2021-07-02T12:46:29Z
Assigned to
No Owner
Creator
Илья Ярошенко
Comments
Comment #0 by ilyayaroshenko — 2021-07-02T12:39:19Z
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);
Comment #1 by dkorpel — 2021-07-02T12:46:29Z
*** This issue has been marked as a duplicate of issue 9999 ***