10 lines
270 B
Kotlin
Vendored
10 lines
270 B
Kotlin
Vendored
// "Wrap with '?.let { ... }' call" "true"
|
|
// SHOULD_BE_AVAILABLE_AFTER_EXECUTION
|
|
// ERROR: Type mismatch: inferred type is String? but String was expected
|
|
// WITH_RUNTIME
|
|
|
|
fun test(s: String?) {
|
|
notNull(notNull(<caret>s))
|
|
}
|
|
|
|
fun notNull(name: String): String = name |