https://issues.dlang.org/show_bug.cgi?id=10413

Nicholas Wilson <iamthewilsona...@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |iamthewilsona...@hotmail.co
                   |                            |m
         Resolution|---                         |INVALID

--- Comment #5 from Nicholas Wilson <iamthewilsona...@hotmail.com> ---
int foo() { return 1; }

static assert(foo.init == 0);

is a case of optional parentheses, as

char foo() { return 1; }

static assert(foo.init == 255);

passes, but 

int foo(int) { return 1; }

static assert(foo.init == 0);

fails with 

onlineapp.d(3): Error: function onlineapp.foo(int) is not callable using
argument types ()
onlineapp.d(3):        missing argument for parameter #1: int
onlineapp.d(3):        while evaluating: static assert((__error).init == 0)

closing as invalid

--

Reply via email to