Fix testdata after ebe3619251
This commit is contained in:
Vendored
+1
@@ -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
@@ -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
|
||||
|
||||
Vendored
+1
@@ -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
|
||||
|
||||
+1
@@ -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
@@ -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
|
||||
|
||||
+1
@@ -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() {
|
||||
|
||||
+1
@@ -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)
|
||||
|
||||
+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
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user