groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Sun <realblue...@hotmail.com>
Subject Re: Traits and protected properties
Date Wed, 25 Jan 2017 13:53:42 GMT
Hi Graeme,

     Here is my test code, which fails:

trait A {
    public static String m() { return '123' }
}

A.m()

error messages:

groovy.lang.MissingMethodException: No signature of method: static A.m() is
applicable for argument types: () values: []
Possible solutions: is(java.lang.Object), any(), dump(),
any(groovy.lang.Closure), use([Ljava.lang.Object;), tap(groovy.lang.Closure)

	at ConsoleScript7.run(ConsoleScript7:5)



--
View this message in context: http://groovy.329449.n5.nabble.com/Traits-and-protected-properties-tp5738002p5738025.html
Sent from the Groovy Dev mailing list archive at Nabble.com.

Mime
View raw message