Fix issue 10413 .init incorrectly accepts any expression

Generate an error message for invalid use of .init