Details
-
Sub-task
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.8-rc-3
-
None
-
None
-
Mac OS X 10.6.7 / JVM: 1.6.0_24
Description
class Foo {}
Foo.metaClass.constructor =
foo = new Foo()
This prints "in constructor" as expected.
But an equivalent EMC DSL:
Foo.metaClass {
constructor { println "in constructor" }
}
doesn't work. (no output)
Looks like it's recognized as just a regular method named "constructor".