http://d.puremagic.com/issues/show_bug.cgi?id=2599
------- Comment #6 from and...@metalanguage.com 2009-01-25 09:46 ------- (In reply to comment #5) > (In reply to comment #4) > > Try this at home: > > > > void fun(T1, T2)(T2 x) > > { > > } > > > > void main() > > { > > fun!(int)("a"); > > } > > But where's it documented? Are you sure it isn't a bug that DMD accepts it? Not sure if Walter documented it. But I'm sure it's deliberately in there because I asked for the feature and Walter took the time to implement it. As far as I remember the feature was introduced in 2.015. --