1public struct Foo { 2 uint8 param; 3} 4 5void main() { 6 bool b = true; 7 var foo = Foo() { param = b ? 10 : 20 }; 8 assert (foo.param == 10); 9} 10