Fix {switch} and ternary operator