mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
17 lines
391 B
Java
17 lines
391 B
Java
class Price {
|
|
public <PT extends Price> PT clone() {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
class BondPrice extends Price {
|
|
public <PT extends BondPrice> PT clone() {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
class User {
|
|
public static void main(String[] args) {
|
|
new BondPrice().clone<error descr="Ambiguous method call: both 'BondPrice.clone()' and 'Price.clone()' match">()</error>;
|
|
}
|
|
} |