mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
Kotlin: Add a Kotlin 2 copy of the testsuite
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
open class A {
|
||||
open fun m(): Int {
|
||||
return 23
|
||||
}
|
||||
|
||||
private fun n() {}
|
||||
|
||||
open val p = 5
|
||||
}
|
||||
|
||||
interface I {
|
||||
fun o()
|
||||
}
|
||||
|
||||
class B : A(), I {
|
||||
override fun m(): Int {
|
||||
return 42
|
||||
}
|
||||
|
||||
fun n() {}
|
||||
|
||||
override fun o() { }
|
||||
|
||||
override val p = 7
|
||||
}
|
||||
Reference in New Issue
Block a user