Hi all, I have this code:
class A { } A.metaClass.hello = { "hello superclass" } class B extends A { } B.metaClass.hello << { "hello subclass" } B.metaClass.hello << { "hello subclass" } new B().hello() As you can see I could able to define hello method twice. But doc says it will throw an exception if it sees a method if already present. Groovy version : 2.2