distinguish capture in presentable text

This commit is contained in:
Anna Kozlova
2015-02-19 18:07:56 +01:00
parent b06817081b
commit d631901d7e
2 changed files with 2 additions and 2 deletions
@@ -92,7 +92,7 @@ public class PsiCapturedWildcardType extends PsiType.Stub {
@NotNull
@Override
public String getPresentableText() {
return myExistential.getPresentableText();
return "capture of " + myExistential.getPresentableText();
}
@NotNull
@@ -12,6 +12,6 @@ class D {
class B{
public static void bar(Comparable<?> x){
foo<error descr="Ambiguous method call: both 'D.foo(Comparable<?>)' and 'C.foo(Comparable<?>)' match">(x)</error>;
foo<error descr="Ambiguous method call: both 'D.foo(Comparable<?>)' and 'C.foo(Comparable<capture of ?>)' match">(x)</error>;
}
}