Lambda to anonymous: report only from left brace to arrow

This commit is contained in:
Mikhail Glukhikh
2018-05-15 15:26:02 +03:00
parent f4acaae364
commit 6a1ddd6c70
10 changed files with 25 additions and 11 deletions
@@ -6,7 +6,6 @@
// ACTION: Replace with safe (this?.) call
// ACTION: Specify explicit lambda signature
// ACTION: Add return@let
// ACTION: Convert to anonymous function
// ERROR: Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type String?
fun String?.foo(a: String?) {