handzlikchris / handzlikchris/FastScriptReload
Private nullable fields added at runtime cause errors (only for reference type)
- Dominant language
- C#
- Stars
- 2.2k
- Forks
- 167
- PR merge metrics
- No merged PRs in 30d
Description
Having an issue Added private nullable field and got error during compilation CS8639: The typeof operator cannot be used on a nullable reference type' Related generated line: private static Dictionary> __Patched_NewFieldsToGetTypeFnDictionaryFieldName = new() {["kitchenObject"] = () => typeof(KitchenObject? ), }; (edited)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start from the generated __Patched_NewFieldsToGetTypeFnDictionaryFieldName line shown in the report and trace handling for runtime-added private nullable fields. Reproduce the CS8639 compilation error with a reference-type field such as KitchenObject?; done means the generated code compiles without using typeof on a nullable reference type.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, unity
- Domain
- game-dev, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100