Zoltan Demant
08/13/2022, 5:58 AMrun
always result in kotlin.run {}
whereas with apply
(and others) you just end up with a nice apply {}
?Joffrey
08/13/2022, 6:00 AMrun
function imported or declared in the same file?Zoltan Demant
08/13/2022, 6:02 AMJoffrey
08/13/2022, 6:04 AMbuildSrc
dir. Now I just tried again in a regular project file, and indeed I get kotlin.run
Joffrey
08/13/2022, 6:04 AMbuildSrc
is usually older)Zoltan Demant
08/13/2022, 6:05 AMJoffrey
08/13/2022, 6:05 AMrun
. Most of the time if you want to use run
you probably want to extract a functionZoltan Demant
08/13/2022, 6:05 AMBig Chungus
08/13/2022, 8:02 AMZoltan Demant
09/21/2022, 9:04 AM