mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
java highlighting tests moved to community
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
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>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user