You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems a module can't have both -behaviour(..) and -compile({parse_transform, pmod_pt}) at the same time. I think the reason is behaviour tries to validate callback functions after pmot_pt is applied(?)
The problem is not with the parse transform itself, but that the behaviour callback check in the compiler doesn't understand the parameterized module, whose actual functions have an additional parameter. And since the support for parameterized modules has been dropped from the compiler, there is no way this can be added now. In short, you can't combine behaviour declarations and parameterized modules.
Related to: rabbitmq/erlando#12 (comment)
It seems a module can't have both
-behaviour(..)
and-compile({parse_transform, pmod_pt})
at the same time. I think the reason is behaviour tries to validate callback functions after pmot_pt is applied(?)state_t.erl
monad.erl
state_t module doesn't compile:
If I remove
-behaviour(monad)
, it compiles. Note that each function has an extra parameter (e.g.'>>='/3
, not'>>='/2
)The text was updated successfully, but these errors were encountered: