It works on my VS22 but I can't test my code here and I can't get why. It says: src/Solution.cs(12,22): error CS8652: The feature 'target-typed object creation' is currently in Preview and unsupported. To use Preview features, use the 'preview' language version.
Alright, thanks. I changed it and it's good.
Not a kata issue, you're trying to use a feature that's not available with the current C# version.
It works on my VS22 but I can't test my code here and I can't get why. It says: src/Solution.cs(12,22): error CS8652: The feature 'target-typed object creation' is currently in Preview and unsupported. To use Preview features, use the 'preview' language version.