Files
kotlin-fork/idea/testData/codeInsight/postfix/tryOnStatement.kt.after
T
Denis Zharkov 3c24996073 Refine default postfix templates selector
There is new settings checkCanBeUsedAsValue
Also expression filtering are split into to parts:
- getNonFilteredExpressions is trivially goes until it reaches
first block body of some declarations
- all additional filtering is merged into Condition that is passed into
PostfixTemplateExpressionSelectorBase super-call

Notable changes for users:
- do not suggest try for non-top-level expressions
- do not suggest var/par/etc for loops
2016-10-03 10:36:48 +03:00

7 lines
76 B
Plaintext
Vendored

fun foo() {
try {
val x = 1
} catch(e: Exception) {
}
}