Bug 9348 – "tmpl!arg" syntax followed by "!is" or "!in"
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-01-18T07:54:00Z
Last change time
2013-02-11T22:49:53Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
avinesworth
Comments
Comment #0 by avinesworth — 2013-01-18T07:54:31Z
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.