www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11476] New: Error: fun (A _param_0) is not callable using argument types ()

reply d-bugmail puremagic.com writes:
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: -------
Nov 08 2013
parent d-bugmail puremagic.com writes:
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: -------
Nov 08 2013