Allow to assert rank value in ranking test

Update test data for lambdas.kt because of same rank check bug fixed.
This commit is contained in:
Nikolay Krasko
2018-10-24 18:09:45 +03:00
parent 122fba20da
commit 8d7829be31
5 changed files with 80 additions and 21 deletions
+22
View File
@@ -0,0 +1,22 @@
//FILE: a/a.kt
// DISABLE_STRICT_MODE
package a
abstract class R {
abstract fun run()
}
fun eval(r: R) {
r.run()
}
class Some {
fun foo() {
eval(object : R() { // Line with negative score
override fun run() {
val a = 1 // R: 4 L: 17
val b = 12 // R: 4 L: 18
}
})
}
}