Bug 7698 – can't specialize parameterized template value

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-03-13T04:13:00Z
Last change time
2012-03-22T10:17:57Z
Assigned to
nobody
Creator
code

Comments

Comment #0 by code — 2012-03-13T04:13:01Z
cat > bug.d << CODE template foo(T, T val : 0) { } alias foo!(int, 0) fooi0; CODE dmd -c bug -------- bug.d(2): Error: forward reference to type T bug.d(2): Error: cannot implicitly convert expression (0) of type int to T
Comment #1 by github-bugzilla — 2012-03-15T21:42:58Z