Bug 15360 – typeof is not a template argument

Status
RESOLVED
Resolution
WONTFIX
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2015-11-19T07:26:06Z
Last change time
2018-06-09T09:12:14Z
Assigned to
No Owner
Creator
deadalnix

Comments

Comment #0 by deadalnix — 2015-11-19T07:26:06Z
I have a template isErrorizable. When I try to do isErrorizable!typeof(stuff), I get "template argument expected following !" Looks like an arbitrary limitation to the grammar.
Comment #1 by razvan.nitu1305 — 2018-06-08T12:54:17Z
Note that nesting the typeof expression with (): isErrorizable!(typeof(stuff)) does work.
Comment #2 by razvan.nitu1305 — 2018-06-08T13:40:24Z