mirror of
https://github.com/github/codeql.git
synced 2025-12-18 18:10:39 +01:00
58 lines
741 B
Kotlin
58 lines
741 B
Kotlin
|
|
class ClassOne { }
|
|
|
|
class ClassTwo (val arg: Int) {
|
|
val x: Int = 3
|
|
}
|
|
|
|
abstract class ClassThree {
|
|
abstract fun foo(arg: Int)
|
|
}
|
|
|
|
open class ClassFour: ClassThree() {
|
|
override fun foo(arg: Int) {
|
|
}
|
|
}
|
|
|
|
class ClassFive: ClassFour() {
|
|
}
|
|
|
|
interface IF1 {
|
|
fun funIF1() {}
|
|
}
|
|
|
|
interface IF2 {
|
|
fun funIF2() {}
|
|
}
|
|
|
|
class ClassSix(): ClassFour(), IF1, IF2 {
|
|
constructor(i: Int): this(){ }
|
|
}
|
|
|
|
fun f(s: String) {}
|
|
|
|
class ClassSeven {
|
|
constructor(i: String) {
|
|
f(i)
|
|
}
|
|
init {
|
|
f("init1")
|
|
}
|
|
|
|
val x: Int = 3
|
|
|
|
init {
|
|
f("init2")
|
|
}
|
|
}
|
|
|
|
enum class Direction {
|
|
NORTH, SOUTH, WEST, EAST
|
|
}
|
|
|
|
enum class Color(val rgb: Int) {
|
|
RED(0xFF0000),
|
|
GREEN(0x00FF00),
|
|
BLUE(0x0000FF)
|
|
}
|