Y
Hacker News
new
|
ask
|
show
|
jobs
by
tazjin
3376 days ago
The compiler would tell you that it can't disambiguate that and fail. It's a type error.
1 comments
bradleyjg
3376 days ago
I guess that makes sense. It is similar to:
void putSomething(Integer i) void putSomething(String i)
and
obj.putSomething(null)
which I think throws a compiler error in java.
link