Fix two broken tests (missing actions)

This commit is contained in:
Mikhail Glukhikh
2018-02-28 10:31:27 +03:00
parent dd106cb65c
commit 24622c0139
2 changed files with 2 additions and 0 deletions
@@ -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?) {
@@ -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?) {