http://d.puremagic.com/issues/show_bug.cgi?id=11206
Maxim Fomin <ma...@maxim-fomin.ru> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |ma...@maxim-fomin.ru Resolution| |INVALID --- Comment #1 from Maxim Fomin <ma...@maxim-fomin.ru> 2013-10-09 08:45:45 PDT --- So, what? Basically you are complainig about: import std.stdio; struct AGG { int[1] t; double d; } void main() { AGG tarr2 = AGG(1); writeln(tarr2); } which prints AGG([1], nan). AGG(1) is a struct literal which is valid in D. Integer literal is a valid initializer for static array. Statement "AGG!S ts1 = AGG!S(1);" is rejected because (unfortunately) 1 is not convertible to struct. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------