mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
12 lines
410 B
Kotlin
12 lines
410 B
Kotlin
// "Wrap with '?.let { ... }' call" "true"
|
|
// SHOULD_BE_AVAILABLE_AFTER_EXECUTION
|
|
// ERROR: Type mismatch: inferred type is String? but String was expected
|
|
// WITH_STDLIB
|
|
|
|
fun test(s: String?) {
|
|
nullable(nullable(notNull(notNull(<caret>s))))
|
|
}
|
|
|
|
fun notNull(name: String): String = name
|
|
fun nullable(name: String?): String = ""
|
|
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.WrapWithSafeLetCallFix |