Reproduction steps:
1. Open project “GenericFieldError”
2. Open scene “SampleScene”
3. Build and Run project
Expected result: The project is built
Actual result: The project is not built and compiler errors are shown in the Console
Reproducible with: 2023.1.0a20, 2023.1.0a25
Not reproducible with: 2020.3.43f1, 2021.3.16f1, 2022.2.2f1, 2023.1.0a19
Reproducible on: Catalina 10.15.7 (Intel)
Note: No compiler errors after deleting “public Optional<Value2<bool>> Q” line in “Foo.cs” and building the project