Adjust testData to CharSequence.length transformation

This commit is contained in:
Denis Zharkov
2015-10-12 20:29:01 +03:00
committed by Mikhail Glukhikh
parent cb562e7ea5
commit f0e3fd617d
348 changed files with 524 additions and 540 deletions
+2 -2
View File
@@ -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
}
}
+2 -2
View File
@@ -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
}
}