From 24622c0139115719b0b7207632a0dc967538c86f Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Wed, 28 Feb 2018 10:31:27 +0300 Subject: [PATCH] Fix two broken tests (missing actions) --- .../letWithWrongImplicitThis.kt | 1 + .../replaceWithSafeCallForScopeFunction/letWithWrongParam.kt | 1 + 2 files changed, 2 insertions(+) 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?) {