Adjust testData to CharSequence.length transformation
This commit is contained in:
committed by
Mikhail Glukhikh
parent
cb562e7ea5
commit
f0e3fd617d
+2
-2
@@ -8,10 +8,10 @@ fun withLambda(o : Int, block : Int.(String) -> Unit) {
|
||||
|
||||
fun test() {
|
||||
withLambda {
|
||||
it.length()
|
||||
it.length
|
||||
}
|
||||
|
||||
withLambda { r -> // no error should be here
|
||||
r.length()
|
||||
r.length
|
||||
}
|
||||
}
|
||||
@@ -8,10 +8,10 @@ fun withLambda(block : Int.(String, String) -> Unit) {
|
||||
|
||||
fun test() {
|
||||
withLambda { r ->
|
||||
r.length()
|
||||
r.length
|
||||
}
|
||||
|
||||
withLambda { x, y ->
|
||||
x.length() + y.length()
|
||||
x.length + y.length
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user