Method signature selection for lambda expression with multiple matching target types

前端 未结 3 2021
小蘑菇
小蘑菇 2021-02-19 12:03

I was answering a question and ran into a scenario I can\'t explain. Consider this code:

interface ConsumerOne {
    void accept(T a);
}

interface Cust         


        
3条回答
提交回复
热议问题