Closed hediet closed 1 year ago
Thanks for the suggestion and the great bug report, made it really easy to reproduce it!
P42 currently already supports this as a 2-step refactoring:
https://user-images.githubusercontent.com/205036/178684186-6eea111d-f0ea-48d3-9860-0625fef1c0a2.mov
There seems to be a small bug where the // Insertion
comment gets lost.
Is the idea about extending the convert to conditional expression
refactoring to automatically perform the merge of initialization/declaration?
I think I somehow missed that action.
=>
Context: