|
|
|
[
Permlink
| « Hide
]
Jochen Theodorou - 18/Aug/06 04:20 AM
offering a different default value is possible. But default args shouldn't be allowed in interfaces. It should generate non-abstract instance methods, which is not alllowed to do in an interface. So default args musn't be allowed for interfaces if the method is not static
1.1-final-SNAPSHOT still allows the following
interface Foo { def doit( String param = "Groovy", int o ) } def foo = { p -> p } as Foo |
|||||||||||||||||||||||||||||||||||||||||||||||||||