How to reproduce:
1. Open the project “RoslynAnalyzer2022ProblemExample.zip“
2. Observe the errors in the Console
Expected result: There are no errors
Actual result: There are errors regarding Unity.SourceGenerators
Reproducible with: 2022.2.0a12, 2022.2.15f1, 2023.1.0b12, 2023.2.0a10
Not Reproducible with: 2020.3.47f1, 2021.3.22f1, 2022.2.0a11
Reproducible on: Windows 10, Linux 6.1.7-arch1-1.1
Workaround: Put scripts in a different package (without the Roslyn analyzer).