In the code below, the methods of Foo and Bar classes are automatically getting
mixed into ArrayList class - without any sort of attempt on the developer's
part to do so.
--------------------------------------------------------------------
assert [0, 1].roshan() == [1, 0]
assert [0, 1].dawrani() == [1, 0]
class Foo {
static roshan(ArrayList list) {
[list[1], list[0]]
}
}
class Bar {
static dawrani(ArrayList list) {
[list[1], list[0]]
}
}
--------------------------------------------------------------------
Original issue reported on code.google.com by roshanda...@gmail.com on 31 Jul 2010 at 11:10
Original issue reported on code.google.com by
roshanda...@gmail.com
on 31 Jul 2010 at 11:10