Files
codeql/java/ql/test/kotlin/library-tests/classes/generic_anonymous.kt
Chris Smowton 61b0efb401 Add test case
2022-05-10 19:51:24 +01:00

14 lines
224 B
Kotlin

private class Generic<T>(val t: T) {
private val x = object {
val member = t
}
fun get() = x.member
}
fun stringIdentity(s: String) = Generic<String>(s).get()
fun intIdentity(i: Int) = Generic<Int>(i).get()