functions are allowed in the same package but not multiple
fun main() = runBlocking { ... }
g
gildor
06/18/2019, 11:55 PM
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
LS
06/18/2019, 11:56 PM
are you sure it's not allowed? seems to work fine for me
a
Andrew Gazelka
06/18/2019, 11:59 PM
well I think it was only if the inferred type was not unit,like @gildor mentioned