mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
Kotlin: Move tests from test/kotlin to test-kotlin1
Matches test-kotlin2
This commit is contained in:
@@ -0,0 +1 @@
|
||||
Violations of Best Practice/Naming Conventions/ConfusingOverloading.ql
|
||||
@@ -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