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: [email protected]
Reporter: [email protected]
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.
--
