✅ Null check not enough to safely convert from nullable enum
I have a class declaring an
I then try to reference that field from a second class:
Yet even with the null check, the IDE is insisting that
What's going on?
enum and a nullable value for that enum:I then try to reference that field from a second class:
Yet even with the null check, the IDE is insisting that
smt could be null and won't let me use the value:What's going on?