handzlikchris / handzlikchris/FastScriptReload

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

オープン
#37 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug feature-new-fields-added-at-runtime
主要言語
C#
スター
2.2k
フォーク
167
PR マージ指標
30日以内にマージされた PR はありません

説明

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)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp, unity
領域
game-dev, tooling
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。