Inspectopedia
 
2024.3

Main function should return 'Unit'

Warning
New
Last modified: 03 December 2024

Reports when a main function does not have a return type of Unit.

Example:

fun main() = "Hello world!"