Bug 2062 – Cannot deduce template type

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2008-05-01T14:03:00Z
Last change time
2015-06-09T01:19:24Z
Keywords
rejects-valid
Assigned to
nobody
Creator
caron800

Comments

Comment #0 by caron800 — 2008-05-01T14:03:55Z
The compiler can't figure this one out void foo(T)(const(T)[] s, const(T)[] t) { } void main() { foo("hello","world"); } (However it /can/ figure out similar templates with only one parameter).
Comment #1 by clugdbug — 2011-01-31T23:57:27Z
Fixed between 2.014 and 2.020.