I have in the class
ANY a class feature
universe (which is only used for static verification and cannot be executed).
universe: MML_SET [ANY]
-- Set of all objects.
note
status: ghost
do
check is_executable: False then end
ensure
instance_free: class
endNow I have a different class
class
THEORY [G -> ANY]
feature
do_something
require
not {G}.universe.is_empty
do
...
end
But this does not compile anymore.
Non-object call on a non-class type Generic #1.
Error code: VUNO
The non-object call uses a target type Generic #1 that is not a class type.
What to do: Make sure the target type of the non-object call is an effective class type.
Class: THEORY [G -> ANY]
Feature:
do_something
Line: 99
require
-> not {G}.universe.is_empty
For me this is a bug. Does anybody have a workaround how to invoke such features in a contract?