Fix testdata after ebe3619251

This commit is contained in:
Ilya Kirillov
2020-01-30 12:55:16 +03:00
parent 736f5e365c
commit 9f7af4b58d
11 changed files with 11 additions and 0 deletions
@@ -1,6 +1,7 @@
// "Remove braces" "false"
// TOOL: org.jetbrains.kotlin.idea.inspections.FunctionWithLambdaExpressionBodyInspection
// ACTION: Convert to block body
// ACTION: Convert to multi-line lambda
// ACTION: Convert to run { ... }
// ACTION: Specify explicit lambda signature
// ACTION: Specify explicit lambda signature
@@ -1,6 +1,7 @@
// "Remove braces" "false"
// TOOL: org.jetbrains.kotlin.idea.inspections.FunctionWithLambdaExpressionBodyInspection
// ACTION: Convert to block body
// ACTION: Convert to multi-line lambda
// ACTION: Specify explicit lambda signature
// ACTION: Specify explicit lambda signature
// ACTION: Specify return type explicitly
@@ -2,6 +2,7 @@
// TOOL: org.jetbrains.kotlin.idea.inspections.FunctionWithLambdaExpressionBodyInspection
// ACTION: Convert property getter to initializer
// ACTION: Convert to block body
// ACTION: Convert to multi-line lambda
// ACTION: Convert to run { ... }
// ACTION: Specify explicit lambda signature
// ACTION: Specify explicit lambda signature
@@ -2,6 +2,7 @@
// TOOL: org.jetbrains.kotlin.idea.inspections.FunctionWithLambdaExpressionBodyInspection
// ACTION: Convert property getter to initializer
// ACTION: Convert to block body
// ACTION: Convert to multi-line lambda
// ACTION: Specify explicit lambda signature
// ACTION: Specify explicit lambda signature
// ACTION: Specify type explicitly
@@ -1,6 +1,7 @@
// "Convert to run { ... }" "false"
// TOOL: org.jetbrains.kotlin.idea.inspections.FunctionWithLambdaExpressionBodyInspection
// ACTION: Convert to block body
// ACTION: Convert to multi-line lambda
// ACTION: Specify explicit lambda signature
// ACTION: Specify explicit lambda signature
// ACTION: Specify return type explicitly
@@ -2,6 +2,7 @@
// TOOL: org.jetbrains.kotlin.idea.inspections.FunctionWithLambdaExpressionBodyInspection
// ACTION: Convert property getter to initializer
// ACTION: Convert to block body
// ACTION: Convert to multi-line lambda
// ACTION: Specify explicit lambda signature
// ACTION: Specify explicit lambda signature
// ACTION: Specify type explicitly
@@ -4,6 +4,7 @@
// ACTION: Specify explicit lambda signature
// ACTION: Specify type explicitly
// ACTION: Convert to anonymous function
// ACTION: Convert to multi-line lambda
// RUNTIME_WITH_FULL_JDK
fun main() {
@@ -3,6 +3,7 @@
// ACTION: Rename to _
// ACTION: Convert to also
// ACTION: Convert to apply
// ACTION: Convert to multi-line lambda
fun test() {
val f = { <caret>i: Int -> foo() }
bar(f)
@@ -3,6 +3,7 @@
// ACTION: Remove explicit lambda parameter types (may break code)
// ACTION: Rename to _
// ACTION: Convert to anonymous function
// ACTION: Convert to single-line lambda
fun foo(block: (String, Int) -> Unit) {
block("", 1)
@@ -6,6 +6,7 @@
// ACTION: Replace with safe (this?.) call
// ACTION: Specify explicit lambda signature
// ACTION: Add return@let
// ACTION: Convert to single-line lambda
// ERROR: Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type String?
fun String?.foo(a: String?) {
@@ -1,4 +1,5 @@
// "Change 'foo' function return type to '(x: [ERROR : NoSuchType]) -> Int'" "false"
// ACTION: Convert to multi-line lambda
// ACTION: Create annotation 'NoSuchType'
// ACTION: Create class 'NoSuchType'
// ACTION: Create enum 'NoSuchType'