Bug 11476 – Error: fun (A _param_0) is not callable using argument types ()

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-11-08T18:47:00Z
Last change time
2013-11-08T19:01:47Z
Assigned to
nobody
Creator
thelastmammoth

Comments

Comment #0 by thelastmammoth — 2013-11-08T18:47:11Z
shouldn't we be allowed to write this? auto fun(T...)(T a){ static if(T.length){} else{} return 2; } unittest{ struct A{} assert(fun!A); }
Comment #1 by thelastmammoth — 2013-11-08T19:01:47Z
sorry, this indeed doesn't make sense, closing.