10 lines
279 B
Kotlin
Vendored
10 lines
279 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?) {
|
|
val s2 = notNull(notNull(<caret>s))
|
|
}
|
|
|
|
fun notNull(name: String): String = name |