summaryrefslogtreecommitdiff
path: root/plugins/kotlin/idea/tests/testData/inspectionsLocal/complexRedundantLet/binarySafeCall.kt
blob: 805e9f471def9692731074ce7f47ea8db24b0c2d (plain)
1
2
3
4
5
6
// ERROR: Type mismatch: inferred type is Int? but Int was expected
// PROBLEM: none
// WITH_RUNTIME

val x = 1
val y = x.<caret>let { it + it?.hashCode() }