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