In reference to
this post, I am really confusing myself with ambiguous methods.
Sample #1
Sample #2
Why does code sample#1 compile and run without any errors while code sample#2 causes compilation error ( reference to m is ambiguous)?
What causes two overloaded methods to be ambiguous?
Your help is highly appreciated. Thanks.
EDIT: Sorry for not checking before posting. I modified code sample#1 after Rufat Piriyev's reply.