[K/N] Transform FunctionReference without bound values to ConstantValue

This commit is contained in:
Pavel Kunyavskiy
2021-07-15 16:45:23 +03:00
committed by Space
parent e4a4cd3e16
commit 504d72011b
3 changed files with 42 additions and 26 deletions
@@ -49,14 +49,16 @@ fun withLock(op: () -> Unit) {
}
} else {
assertFailsWith<IllegalStateException> {
val message = "shall not happen"
worker.executeAfter {
println("shall not happen")
println(message)
}
}
}
assertFailsWith<IllegalArgumentException> {
val message = "shall not happen"
worker.executeAfter(-1, {
println("shall not happen")
println(message)
}.freeze())
}