- Code: Select all
Garden.cobra(0,0): Warning: The expression "plant" (of type "IFieldItem") will always evaluate to true because it is not nilable. You can remove the expression.
the expression is:
- Code: Select all
if plant
an empty spot in the field is the nil value.
there is a list (actually now multilist) of IFieldItem which is an interface, and not initialized.
I think the warning is wrong.
just a report
kobi