From f07f550f0f324b914198b97df09d05e02dc36f9d Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 11 Jul 2011 17:59:04 +0200 Subject: [PATCH] fix EA-28750 - chained call completion aware of captured types --- .../completion/ReferenceExpressionCompletionContributor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/java-impl/src/com/intellij/codeInsight/completion/ReferenceExpressionCompletionContributor.java b/java/java-impl/src/com/intellij/codeInsight/completion/ReferenceExpressionCompletionContributor.java index 546d759033ef..7462719fc8cb 100644 --- a/java/java-impl/src/com/intellij/codeInsight/completion/ReferenceExpressionCompletionContributor.java +++ b/java/java-impl/src/com/intellij/codeInsight/completion/ReferenceExpressionCompletionContributor.java @@ -388,7 +388,7 @@ public class ReferenceExpressionCompletionContributor { if (varType instanceof PsiEllipsisType) { varType = ((PsiEllipsisType)varType).getComponentType(); } - if (varType instanceof PsiWildcardType) { + if (varType instanceof PsiWildcardType || varType instanceof PsiCapturedWildcardType) { varType = TypeConversionUtil.erasure(expectedType); }