mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +01:00
14 lines
224 B
Kotlin
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()
|