blob: 7c153371df5fea8036b895bad5d427da98416d6c [file] [log] [blame]
// Copyright (c) 2017, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class KotlinApp {
companion object {
@JvmStatic fun main(args: Array<String>) {
println("Hello world!")
val instance = KotlinApp()
instance.processObject(instance, instance::printObject)
}
}
fun processObject(obj: Any, func: (Any) -> Unit) {
func(obj)
}
fun printObject(obj: Any) {
println(obj)
}
}