Created
June 4, 2015 09:12
-
-
Save graemerocher/90f196502c21891b670f to your computer and use it in GitHub Desktop.
Trait builder issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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