411 B
411 B
Fix duplicated comments in empty branches with experimentalTernaries (#18963 by @kovsu)
// Input
condition ? ifTrue
: [
// Hello, world!
];
// Prettier stable (--experimental-ternaries)
condition ? ifTrue
// Hello, world!
: (
[
// Hello, world!
]
);
// Prettier main (--experimental-ternaries)
condition ? ifTrue : (
[
// Hello, world!
]
);