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 } }