Description
trait T { abstract def foo(a, b = 1) } T t = { o1, o2 -> println o1 assert o2 == 1 } t.foo(42) // Caught: groovy.lang.MissingMethodException: No signature of method: abstractMethod$_run_closure1.doCall() is applicable for argument types: (java.lang.Integer) values: [42]
Expected result: it should just work or throw GroovyCastException in case of traits are not SAM candidates
Attachments
Issue Links
- causes
-
GROOVY-10717 Map to type coercion not working on abstract classes
- Closed