Files
kotlin-fork/j2k/tests/testData/ast/callChainExpression/libraryMethodCallFromInstance.ide.kt
T
Pavel V. Talanov 21bc2887d2 Converter:
Omit Unit return type
Refactor handling of Unit type: extract separate object UnitType
2013-12-22 15:53:14 +04:00

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()
}
}