i am starting to learn MPS and i am having troubles with restricting types to use. i would like to use custom types; some inherits from Float, String, some others like Array not. I did manage to filter out all types i dont want from the completion menu by following this thread:
So I have end up with an Interface concept used to add the type needed and a constraint in that interface which check againts all the types I want to show. When I am in editor and in context where should go a type, everything is as expected, i only get types specified in conditions.
The problem resides in that for example declaring a function to have a return type makes the contraint fail for any other child, for example a body of type StatetementList.
Can anyone point me in the right direction with this problem? Is there a better solution for addressing this types restrictions?
Thanks in advance,