Could you share the code where you’re calling the function?
Module Y may need to be aliased or specified fully. E.g. MyApp.FooContext.Y.some_fun(arg1, arg2).
If it’s being passed as a parameter then you’d want something like &MyApp.FooContext.Y.some_fun/2.


















