moreSpecific: use site info to check assignability, prefer concrete to abstract methods (IDEA-57569)

This commit is contained in:
Anna Kozlova
2013-08-15 13:49:57 +04:00
parent 5b6fe03a18
commit 230c6fd84b
6 changed files with 80 additions and 17 deletions
@@ -0,0 +1,11 @@
package pck;
abstract class C<T> {
abstract Object foo(T x);
String foo(String x) { return null; }
}
class D extends C<String>{
{
foo("");
}
}
@@ -0,0 +1,22 @@
public class CssPropertyValueImpl extends CssTableValueBase<CssPropertyValue, Object> implements CssPropertyValue {
public CssPropertyValueImpl(final Type type) {
super(type);
}
}
public abstract class CssTableValueBase<V extends CssTableValue, T> implements CssTableValue<V, T> {
protected CssTableValueBase(final Type type) {
}
protected CssTableValueBase(final T value) {
}
}
enum Type {}
interface CssTableValue<A, B> {
}
interface CssPropertyValue extends CssTableValue<CssPropertyValue, Object> {
}