handzlikchris / handzlikchris/FastScriptReload
Private nullable fields added at runtime cause errors (only for reference type)
- Lenguaje dominante
- C#
- Estrellas
- 2.2k
- Forks
- 167
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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)
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- csharp, unity
- Área
- game-dev, tooling
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 35/100