Main function should return 'Unit'
Reports when a main function does not have a return type of Unit
.
Example:
fun main() = "Hello world!"
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Kotlin, @snapshot@ |
Last modified: 13 July 2023