Generate a static field when it is declared with "val" and initialized in the same statement.