fork download
  1. def f() {}
  2.  
  3. class C
  4. {
  5. public h() { f() }
  6. }
  7.  
  8. x = (new C()).h();
  9.  
Runtime error #stdin #stdout #stderr 1.15s 387968KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Caught: groovy.lang.MissingMethodException: No signature of method: C.f() is applicable for argument types: () values: []
Possible solutions: h(), is(java.lang.Object), find(), any(), any(groovy.lang.Closure), use([Ljava.lang.Object;)
groovy.lang.MissingMethodException: No signature of method: C.f() is applicable for argument types: () values: []
Possible solutions: h(), is(java.lang.Object), find(), any(), any(groovy.lang.Closure), use([Ljava.lang.Object;)
	at C.h(prog.groovy:5)
	at C$h.call(Unknown Source)
	at prog.run(prog.groovy:8)