opm-common icon indicating copy to clipboard operation
opm-common copied to clipboard

Bug or feature? Field property created only with EQUALS returns false for has_key

Open blattms opened this issue 1 year ago • 0 comments

If we use EQUALS to populate a field property without initializing it as a normal keyword before. FieldPropsManager::has_key will return false for it (because there is no entry in the list of keys). This might be a feature because because FieldProperty::try_get explicitly caters for the case where the key is missing in the list.

Does anybody know why?

I still have the feeling that has_key should return true even in this case...

blattms avatar Feb 12 '24 19:02 blattms