blob: 0da26f48e2e9142b02706564f29db930991773f0 [file] [log] [blame]
// "Add non-null asserted (!!) call" "false"
// ACTION: Add 'toString()' call
// ACTION: Change type of 'x' to 'String?'
// ACTION: Remove braces from 'if' statement
// ERROR: Type mismatch: inferred type is String? but String was expected
fun foo(arg: String?) {
if (arg == null) {
val x: String = arg<caret>
}
}