[Issue 9348] New: "tmpl!arg" syntax followed by "!is"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jan 18 07:54:32 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9348
Summary: "tmpl!arg" syntax followed by "!is"
Product: D
Version: D2
Platform: x86_64
OS/Version: Windows
Status: NEW
Severity: minor
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: avinesworth at mail.ru
--- Comment #0 from Andrei Vinokurov <avinesworth at mail.ru> 2013-01-18 07:54:31 PST ---
The following code gets rejected:
@property Object F(int E)() { return null; }
unittest { assert (F!0 !is null); }
>> Error: multiple ! arguments are not allowed
Thoughts: there seems to be some syntactic ambiguity between "!is" as operator
and "!" as template parameter list infix. IMHO, the expected behaviour in this
case would be not to take operator for template parameter.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list