Skip to content

Commit 24622c0

Browse files
committed
Fix two broken tests (missing actions)
1 parent dd106cb commit 24622c0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

idea/testData/quickfix/replaceWithSafeCallForScopeFunction/letWithWrongImplicitThis.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// ACTION: Move lambda argument into parentheses
66
// ACTION: Replace with safe (this?.) call
77
// ACTION: Specify explicit lambda signature
8+
// ACTION: Add return@let
89
// ERROR: Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type String?
910

1011
fun String?.foo(a: String?) {

idea/testData/quickfix/replaceWithSafeCallForScopeFunction/letWithWrongParam.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// ACTION: Introduce local variable
55
// ACTION: Replace with safe (?.) call
66
// ACTION: Surround with null check
7+
// ACTION: Add return@let
78
// ERROR: Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type String?
89

910
fun foo(a: String?, b: String?) {

0 commit comments

Comments
 (0)