November 09, 2013 [Issue 11476] New: Error: fun (A _param_0) is not callable using argument types () | ||||
---|---|---|---|---|
| ||||
https://d.puremagic.com/issues/show_bug.cgi?id=11476 Summary: Error: fun (A _param_0) is not callable using argument types () Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: thelastmammoth@gmail.com --- Comment #0 from thelastmammoth@gmail.com 2013-11-08 18:47:11 PST --- 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); } -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
November 09, 2013 [Issue 11476] Error: fun (A _param_0) is not callable using argument types () | ||||
---|---|---|---|---|
| ||||
Posted in reply to thelastmammoth@gmail.com | https://d.puremagic.com/issues/show_bug.cgi?id=11476 thelastmammoth@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from thelastmammoth@gmail.com 2013-11-08 19:01:47 PST --- sorry, this indeed doesn't make sense, closing. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation