What would be the recommended Kotlin alternative for Java’s block statements. We use them in Java to cleanly scope independent test blocks which we want to isolate from each other in the test method.
@Test fun test() {
{
val foo = //...
}
{
val foo = // .. something new
}
}