mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Kotlin: Add a Kotlin 2 copy of the testsuite
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
class C {
|
||||
var p: Int
|
||||
get() = 1
|
||||
set(value) {}
|
||||
fun fn() {
|
||||
val prop = C::p
|
||||
prop(this)
|
||||
}
|
||||
}
|
||||
|
||||
class A {
|
||||
fun <T : Any> fn(value: T, i: Int = 1) {}
|
||||
fun fn(value: String, i: Int = 1) {}
|
||||
}
|
||||
|
||||
class Foo {
|
||||
val str by lazy {
|
||||
"someString"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user