http://d.puremagic.com/issues/show_bug.cgi?id=2841


Don <clugd...@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|spec                        |accepts-invalid
            Summary|char[] template value       |char[] incorrectly accepted
                   |arguments broken in D2      |as a template value
                   |                            |argument in D2
           Severity|major                       |normal


--- Comment #3 from Don <clugd...@yahoo.com.au> 2009-09-22 03:04:52 PDT ---
Here's a test case which illustrates the problem better.

int foo(char[])() { return 0; }

bug.d(1): identifier expected for template value parameter

---
So it clearly thinks it is a template value parameter, but it's impossible in
D2 to have a char[] compile-time value! It must be immutable(char)[].

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to