This should compile but doesn't:
auto x = X(0.123);
struct X {
int a;
this(double) {}
}
Error: cannot implicitly convert expression (0.123) of type double to int
It works if I reverse the order of declaration for X and x or I don't use type inference for x. E.g. a classical forward reference bug.