https://d.puremagic.com/issues/show_bug.cgi?id=12043
--- Comment #2 from [email protected] 2014-01-30 10:02:55 PST --- (In reply to comment #0) > This fails with: > Error: template instance f!float f is not a template declaration, > it is a variable > > ---- > import std.stdio; > > struct F { > T opCall(T = int)(int a, int b, int c) { > return cast(T)(a * b * c); > } > } > > void main() { > F f; > int i = f(3,4,5); > float f_ = f!float(6, 7, 8); > } > ---- > > I don't see why it shouldn't work. Thanks, my english is limited... :) -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
