Files
kotlin-fork/idea/testData/quickfix/replaceWithSafeCall/functionExpressionBody.kt.after
T
2021-03-23 11:04:33 +01:00

9 lines
284 B
Plaintext
Vendored

// "Replace with safe (?.) call" "true"
// WITH_RUNTIME
// ERROR: Type mismatch: inferred type is Int? but Int was expected
// Note: There should be no error in FIR but errors are not currently checked for FIR
class T {
fun foo(s: String?): Int = s?.length
}
/* FIR_COMPARISON */