interface IFoo get bar as int class Foo adds FooBehavior implements IFoo mixin FooBehavior get bar as int return 1 class Program def main f = Foo() print f.bar