[Issue 11401] ElementType returns constructor instead of type
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Nov 3 18:33:54 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11401
--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> 2013-11-03 18:33:49 PST ---
This is git-head only issue.
Introduced by:
https://github.com/D-Programming-Language/phobos/pull/1658
(In reply to comment #1)
> alias E1 = typeof(RowRange.init.front());
> static assert(is(typeof(E1.id)),
> E1.stringof~" is expected to have a 'id' member");
> alias E2 = typeof(RowRange.init.front);
> static assert(is(typeof(E2.id)),
> E2.stringof~" is expected to have a 'id' member");
Currently typeof(non_property_func) returns the function type, not its return
type. It is intended behavior, and this is not a compiler issue.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list