mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
provably distinct: ? extends A should be provably distinct from Object until A is not an Object (IDEA-105695)
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
import java.util.Map;
|
||||
|
||||
public class Test {
|
||||
void bar(Prop p) {
|
||||
Map<? extends String, ? extends String> map = <error descr="Inconvertible types; cannot cast 'Prop' to 'java.util.Map<? extends java.lang.String,? extends java.lang.String>'">(Map<? extends String, ? extends String>)p</error>;
|
||||
}
|
||||
}
|
||||
|
||||
abstract class Hashtble<K,V> implements Map<K,V> {}
|
||||
abstract class Prop extends Hashtble<Object, Object>{}
|
||||
Reference in New Issue
Block a user