is there a reason why multiple `fun main` function...
# announcements
a
is there a reason why multiple
fun main
functions are allowed in the same package but not multiple
fun main() = runBlocking { ... }
g
Probably because in case of runBlocking infered return type is not unit, so it's not real main function anymore, try specify type explicitly runBlocking<Unit>
👍 2
l
are you sure it's not allowed? seems to work fine for me
a
well I think it was only if the inferred type was not unit,like @gildor mentioned
it looks like that is the case
l
oh yeah, i see that now