Enum not at top level expression


Hello guys!

I have something like this:

So basically an enum array, where a specific enum like “Points” refers to a string and type “POINTS” / Float32. My question is:

If I try putting this in the main function I get a not at toplevel error, so is it in any way possible to insert this inside a function through some work around? I want it to be not assigned in the global scope.

Kind regards


Please don’t post screenshots, but quoted code.

1 Like