Kotlin scratch file output is missing in Android Studio
A .kts
file doesn't require a main
function. You can add the print statement at the top level.
This would explain the warning about args
being unused, since main
is never invoked.
A script is a Kotlin source file (.kts) with top level executable code.
Using the command line to run scripts