Skip to content

Instantly share code, notes, and snippets.

@behrangsa
Created May 9, 2013 04:18
Show Gist options
  • Save behrangsa/5545532 to your computer and use it in GitHub Desktop.
Save behrangsa/5545532 to your computer and use it in GitHub Desktop.
Indirect mixins not supported in Groovy 2.0.8
class MixinFoo {
def foo() { println "foo" }
}
@Mixin(MixinFoo)
class MixinBar {
def bar() { println "bar" }
}
@Mixin(MixinBar)
class Baz {
def baz() {
foo()
}
}
new Baz().bar()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment