Introduce "Function with = { ... }" inspection
#KT-17119 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
301b3aad06
commit
538a746df9
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
// "Remove braces" "false"
|
||||
// TOOL: org.jetbrains.kotlin.idea.inspections.FunctionWithLambdaExpressionBodyInspection
|
||||
// ACTION: Convert to block body
|
||||
// ACTION: Convert to run { ... }
|
||||
// ACTION: Specify explicit lambda signature
|
||||
// ACTION: Specify explicit lambda signature
|
||||
// ACTION: Specify return type explicitly
|
||||
fun test(a: Int, b: Int) = <caret>{
|
||||
foo()
|
||||
foo()
|
||||
}
|
||||
|
||||
fun foo() {}
|
||||
Reference in New Issue
Block a user