Bug 7563 – Class members with default template arguments have no type

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-02-22T13:17:00Z
Last change time
2012-03-04T00:48:59Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
siegelords_abode

Comments

Comment #0 by siegelords_abode — 2012-02-22T13:17:25Z
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.
Comment #1 by k.hara.pg — 2012-02-26T03:13:13Z
Comment #2 by github-bugzilla — 2012-03-03T22:57:50Z
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/9225eea616ceb84e3b04d4e27c4d75db69fd282f Merge pull request #766 from 9rnsr/fix7563 Issue 7563 - Class members with default template arguments have no type