Reproduction for Rider issue https://youtrack.jetbrains.com/issue/RIDER-81746
- Clone this repo
- Open the root with Unity
2021.3.10f1
- Open the C# project in Rider and navigate to the
ExampleUsage
class. - Observe the following erroneous warning:
The project has two assemblies:
First
(nullables disabled viacsc.rsp
)Second
(nullables enabled viacsc.rsp
)
ExampleUsage
in the Second
assembly instantiates an instance of a type defined in First
, but rider complains that null
is passed to a non-nullable entity.
- Unity 2021.3.10f1 (latest LTS)
- Rider 2022.2.3 (latest stable)
- Rider Unity package 3.0.15 (latest stable)