Merge pull request #949 from calexHG/patch-1

Fix KtTypeReference.hasParentheses() to check for both LPAR and RPAR
This commit is contained in:
Dmitry Jemerov
2016-09-12 11:44:29 +03:00
committed by GitHub
@@ -49,6 +49,6 @@ class KtTypeReference : KtElementImplStub<KotlinPlaceHolderStub<KtTypeReference>
}
fun hasParentheses(): Boolean {
return findChildByType<PsiElement>(KtTokens.LPAR) != null && findChildByType<PsiElement>(KtTokens.LPAR) != null
return findChildByType<PsiElement>(KtTokens.LPAR) != null && findChildByType<PsiElement>(KtTokens.RPAR) != null
}
}