D Paste by strange
Description: is this a bug ?
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | struct Foo { union { struct { float x,y,z; } float[3] _v; } static Foo bar(){ Foo f; return f; } } void main() { const Foo foo = Foo.bar();//Error: cannot evaluate bar() at compile time } |