mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 08:31:28 +00:00
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
5 lines
55 B
Kotlin
Vendored
5 lines
55 B
Kotlin
Vendored
fun foo() {
|
|
for (i in 1..100) {
|
|
}.try<caret>
|
|
}
|