From 1d139d6b53f897d384044b4dd8052e6404862d6e Mon Sep 17 00:00:00 2001 From: Corey Hates Git Date: Sat, 10 Sep 2016 02:39:44 -0400 Subject: [PATCH] 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. --- .../frontend/src/org/jetbrains/kotlin/psi/KtTypeReference.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/frontend/src/org/jetbrains/kotlin/psi/KtTypeReference.kt b/compiler/frontend/src/org/jetbrains/kotlin/psi/KtTypeReference.kt index c0eb9a109bb..048a57907c4 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/psi/KtTypeReference.kt +++ b/compiler/frontend/src/org/jetbrains/kotlin/psi/KtTypeReference.kt @@ -49,6 +49,6 @@ class KtTypeReference : KtElementImplStub } fun hasParentheses(): Boolean { - return findChildByType(KtTokens.LPAR) != null && findChildByType(KtTokens.LPAR) != null + return findChildByType(KtTokens.LPAR) != null && findChildByType(KtTokens.RPAR) != null } }