Skip to content

Instantly share code, notes, and snippets.

@graemerocher
Created June 4, 2015 09:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save graemerocher/90f196502c21891b670f to your computer and use it in GitHub Desktop.
Save graemerocher/90f196502c21891b670f to your computer and use it in GitHub Desktop.
Trait builder issue
import groovy.xml.*
trait MyBuilder {
def build2() {
def mkp = new MarkupBuilder()
mkp.foo {
bar()
}
}
}
class Foo implements MyBuilder {
def build1() {
def mkp = new MarkupBuilder()
mkp.foo {
bar()
}
}
}
foo = new Foo()
foo.build1()
foo.build2()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment