Closed GoogleCodeExporter closed 8 years ago
Original comment by alex.tka...@gmail.com
on 29 Mar 2011 at 11:13
The following usage of named arguments works now with FHashMap param.
So, is there anything else to this issue, or shall I just add a test for it?
==========================================================================
@Typed package test
def foo1(FHashMap args) {
assert args instanceof FHashMap
assert args.containsKey('foo') && args.containsKey('bar')
}
def foo2(FHashMap<String, Integer> args) {
assert args.foo + args.bar == 5
}
foo1(foo:2, bar:3)
foo2(foo:2, bar:3)
==========================================================================
Original comment by roshanda...@gmail.com
on 30 May 2011 at 6:57
I think that's exactly what was expected in this issue, thanks
Original comment by gromop...@gmail.com
on 30 May 2011 at 2:22
Added a test. Works as expected.
Original comment by roshanda...@gmail.com
on 1 Jun 2011 at 5:22
Original issue reported on code.google.com by
gromop...@gmail.com
on 29 Mar 2011 at 11:11