interface ihello { enum r {f,t}; in r hello(); behaviour { on hello: reply (r.f); } } component hello_enum { provides ihello h; requires iworld w; behaviour { on h.hello(): { ihello.r e = w.world(); reply (e); } } } interface iworld { in ihello.r world(); behaviour { on world: reply (ihello.r.f); } }