Pattern: Implicit platform type
Issue: -
Platform types must be declared explicitly in public APIs to prevent unexpected errors.
Example of incorrect code:
class Person {
fun apiCall() = System.getProperty("propertyName")
}
Example of correct code:
class Person {
fun apiCall(): String = System.getProperty("propertyName")
}