use terms "lambda expression" and "anonymous function" instead of "function literal" and "function expression"
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
fun unusedLiteral(){
|
||||
<!UNUSED_FUNCTION_LITERAL!>{ ->
|
||||
<!UNUSED_LAMBDA_EXPRESSION!>{ ->
|
||||
val <!UNUSED_VARIABLE!>i<!> = 1
|
||||
}<!>
|
||||
}
|
||||
|
||||
|
||||
fun unusedLiteralInDoWhile(){
|
||||
do<!UNUSED_FUNCTION_LITERAL!>{ ->
|
||||
do<!UNUSED_LAMBDA_EXPRESSION!>{ ->
|
||||
val <!UNUSED_VARIABLE!>i<!> = 1
|
||||
}<!> while(false)
|
||||
}
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
fun main(args: Array<String>) {
|
||||
"".run {
|
||||
<!UNUSED_FUNCTION_LITERAL!>{}<!>
|
||||
<!UNUSED_LAMBDA_EXPRESSION!>{}<!>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user