You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@groovy.apache.org by roro codeath <ro...@gmail.com> on 2015/04/05 17:05:51 UTC
Fwd: Add Trait.staticMeth in groovy
---------- Forwarded message ----------
From: roro codeath <ro...@gmail.com>
Date: Sun, Apr 5, 2015 at 10:58 PM
Subject: Add Trait.staticMeth in groovy
To: users@groovy.incubator.apache.org
for instance:
trait T {
static m(Closure c) {
}
}
class Ex3 {
static void main(args) {
T.m()
}
}
to make meth in trait is callable directly like Class.staticMeth