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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Andrei Vinokurov <[email protected]> 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: -------