mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
29 lines
495 B
Kotlin
29 lines
495 B
Kotlin
class MyClass {
|
|
fun funInClass() {}
|
|
companion object MyClassCompanion {
|
|
fun funInCompanion() {}
|
|
}
|
|
}
|
|
|
|
interface MyInterface {
|
|
fun funInInterface()
|
|
companion object MyInterfaceCompanion {
|
|
fun funInCompanion() {}
|
|
}
|
|
}
|
|
|
|
class Imp : MyInterface {
|
|
override fun funInInterface() {
|
|
TODO("Not yet implemented")
|
|
}
|
|
|
|
}
|
|
|
|
fun user() {
|
|
MyClass.funInCompanion()
|
|
MyClass().funInClass()
|
|
MyInterface.funInCompanion()
|
|
Imp().funInInterface()
|
|
}
|
|
|