Files
codeql/java/ql/test-kotlin2/library-tests/methods/methods.kt
2023-11-17 14:07:13 +00:00

22 lines
409 B
Kotlin

fun topLevelMethod(x: Int, y: Int) {
}
class Class {
fun classMethod(x: Int, y: Int) {
}
fun anotherClassMethod(a: Int, b: Int) {
classMethod(a, 3)
topLevelMethod(b, 4)
}
public fun publicFun() {}
protected fun protectedFun() {}
private fun privateFun() {}
internal fun internalFun() {}
fun noExplicitVisibilityFun() {}
inline fun inlineFun() {}
}