use terms "lambda expression" and "anonymous function" instead of "function literal" and "function expression"
This commit is contained in:
Vendored
+1
-1
@@ -2,7 +2,7 @@ fun test(<warning textAttributesKey="NOT_USED_ELEMENT_ATTRIBUTES">unusedParam</w
|
||||
val str = ":)"
|
||||
str <warning textAttributesKey="NOT_USED_ELEMENT_ATTRIBUTES">as String</warning> // USELESS_CAST
|
||||
|
||||
// UNUSED_FUNCTION_LITERAL
|
||||
// UNUSED_LAMBDA_EXPRESSION
|
||||
<warning textAttributesKey="NOT_USED_ELEMENT_ATTRIBUTES">{
|
||||
test(0)
|
||||
}</warning>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Change the signature of function literal" "true"
|
||||
// "Change the signature of lambda expression" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
fun f(x: Int, y: Int, z : () -> Int) {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change the signature of function literal" "true"
|
||||
// "Change the signature of lambda expression" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
fun f(x: Int, y: Int, z : () -> Int) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Change the signature of function literal" "true"
|
||||
// "Change the signature of lambda expression" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
fun f(x: Int, y: Int, z : (Int, Int?, Any) -> Int) {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change the signature of function literal" "true"
|
||||
// "Change the signature of lambda expression" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
fun f(x: Int, y: Int, z : (Int, Int?, Any) -> Int) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Change the signature of function literal" "true"
|
||||
// "Change the signature of lambda expression" "true"
|
||||
|
||||
fun foo(f: Int.(Int, Int) -> Int) {
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change the signature of function literal" "true"
|
||||
// "Change the signature of lambda expression" "true"
|
||||
|
||||
fun foo(f: Int.(Int, Int) -> Int) {
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change the signature of function literal" "true"
|
||||
// "Change the signature of lambda expression" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change the signature of function literal" "true"
|
||||
// "Change the signature of lambda expression" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove identifier from function expression" "true"
|
||||
// "Remove identifier from anonymous function" "true"
|
||||
|
||||
fun foo() {
|
||||
(fun bar<caret>() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Remove identifier from function expression" "true"
|
||||
// "Remove identifier from anonymous function" "true"
|
||||
|
||||
fun foo() {
|
||||
(bar@ fun() {
|
||||
|
||||
Reference in New Issue
Block a user