fun test(b: Boolean): Unit = when (b) { true -> { fun a() {} Unit } else -> { } }