No, that’s not correct. There have not been any significant breaking changes recently. And the example I gave you compiles with the current version anyway.
I’d suggest reading “How to ask a good question” - even “it doesn’t compile” is insufficient to start diagnosing the problem (and I realise you have moved past this one, but there will be others.)
Everyone is on a learning curve and there’s no shame in not knowing something, but when asking for help not only will you get much better responses if you provide full information up front, but often in the process of explaining what you want to do, what you’ve tried, and what the results were, the solution may become apparent just through the process of clearly defining and explaining the problem - which can save you a lot of time!