mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
Kotlin: Add a Kotlin 2 copy of the testsuite
This commit is contained in:
@@ -0,0 +1 @@
|
||||
Violations of Best Practice/Implementation Hiding/ExposeRepresentation.ql
|
||||
@@ -0,0 +1,3 @@
|
||||
class ExposesRep {
|
||||
val strings: Array<String?> = arrayOfNulls(1)
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
class User {
|
||||
fun test1(er: ExposesRep) {
|
||||
er.strings[0] = "Hello world"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user