[Issue 7563] New: Class members with default template arguments have no type
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 22 13:17:27 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7563
Summary: Class members with default template arguments have no
type
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: siegelords_abode at yahoo.com
--- Comment #0 from siegelords_abode at yahoo.com 2012-02-22 13:17:25 PST ---
DMD 2.058
class Test
{
void test(T, bool a = true)(T t)
{
}
}
void main()
{
auto test = new Test;
pragma(msg, typeof(test.test!(int, true)).stringof);
pragma(msg, typeof(test.test!(int)).stringof); // Error: expression
(test.test!(int)) has no type
}
Doesn't happen if test is a free function or a nested function.
--
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