blob: 6c1a0bc949eac7df7306f07cdd9db58536e4b5c1 [file] [log] [blame]
int foo() { return 3; }
struct S2
{
int a, b, c;
static immutable S2 C1 = { foo() 2 3 }; // compiles (and works)
static immutable S2 C2 = { foo() 2, 3 }; // compiles (and works)
//static immutable S2 C3 = { 2 foo() 3 }; // does not compile: comma expected separating field initializers
}