Fix KtTypeReference.hasParentheses() to check for both LPAR *and* RPAR, as was originally intended
Minor typo fix. A year old typo had this redundantly checking for LPAR twice, rather than checking once for LPAR and once for RPAR.
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user