[Issue 15254] New: is expression compares string sub-type equal to an array
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Oct 28 04:00:37 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=15254
Issue ID: 15254
Summary: is expression compares string sub-type equal to an
array
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: code at dawg.eu
cat > bug.d << CODE
struct S
{
string s;
alias s this;
}
static assert(!is(S == U[], U)); // shouldn't be true
static assert(is(S : U[], U));
CODE
dmd -c bug
----
This was the actual cause for issue 15168.
--
More information about the Digitalmars-d-bugs
mailing list