handzlikchris / handzlikchris/FastScriptReload

Private nullable fields added at runtime cause errors (only for reference type)

Open
#37 2 comments 0 reactions 0 assignees View on GitHub
bug feature-new-fields-added-at-runtime
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.