[Issue 11703] New: Typedef!int(1).max is int
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 7 07:02:11 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11703
Summary: Typedef!int(1).max is int
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2013-12-07 07:02:07 PST ---
void main() {
import std.typecons: Typedef;
alias T = Typedef!int;
T m;
pragma(msg, typeof(m));
auto m1 = T.min;
pragma(msg, typeof(m1));
auto m2 = T.max;
pragma(msg, typeof(m2));
}
dmd 2.065alpha prints:
Typedef!(int, 0)
int
int
Expected:
Typedef!(int, 0)
Typedef!(int, 0)
Typedef!(int, 0)
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list