21bc2887d2
Omit Unit return type Refactor handling of Unit type: extract separate object UnitType
15 lines
194 B
Kotlin
15 lines
194 B
Kotlin
open class Library() {
|
|
class object {
|
|
open fun call() {
|
|
}
|
|
open fun getString() : String? {
|
|
return ""
|
|
}
|
|
}
|
|
}
|
|
open class User() {
|
|
open fun main() {
|
|
Library.call()
|
|
Library.getString()?.isEmpty()
|
|
}
|
|
} |