diff --git a/idea/testData/quickfix/replaceWithSafeCallForScopeFunction/letWithWrongImplicitThis.kt b/idea/testData/quickfix/replaceWithSafeCallForScopeFunction/letWithWrongImplicitThis.kt index aef816ee857..a4b33f616c0 100644 --- a/idea/testData/quickfix/replaceWithSafeCallForScopeFunction/letWithWrongImplicitThis.kt +++ b/idea/testData/quickfix/replaceWithSafeCallForScopeFunction/letWithWrongImplicitThis.kt @@ -5,6 +5,7 @@ // ACTION: Move lambda argument into parentheses // ACTION: Replace with safe (this?.) call // ACTION: Specify explicit lambda signature +// ACTION: Add return@let // ERROR: Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type String? fun String?.foo(a: String?) { diff --git a/idea/testData/quickfix/replaceWithSafeCallForScopeFunction/letWithWrongParam.kt b/idea/testData/quickfix/replaceWithSafeCallForScopeFunction/letWithWrongParam.kt index 234d86249d3..7fa23f528f7 100644 --- a/idea/testData/quickfix/replaceWithSafeCallForScopeFunction/letWithWrongParam.kt +++ b/idea/testData/quickfix/replaceWithSafeCallForScopeFunction/letWithWrongParam.kt @@ -4,6 +4,7 @@ // ACTION: Introduce local variable // ACTION: Replace with safe (?.) call // ACTION: Surround with null check +// ACTION: Add return@let // ERROR: Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type String? fun foo(a: String?, b: String?) {