[Issue 18870] Link failure only with -allinst for code in isExpression
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri May 18 22:45:25 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18870
ag0aep6g <ag0aep6g at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |link-failure
CC| |ag0aep6g at gmail.com
--- Comment #1 from ag0aep6g <ag0aep6g at gmail.com> ---
Reduced:
----
void put(R)(R r)
{
r.put();
}
enum hasToString = is(typeof({
static struct S { void put() {} }
enum e = is(typeof(put(S.init)));
}));
static assert(hasToString);
void main() {}
----
--
More information about the Digitalmars-d-bugs
mailing list