mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
This arises when a generic class extends one of its parameters; for example, `class G<T> { val T.v; get() = 1 }`, where specialisation `G<List>` should generate a method specialisation `getV(List)`.
9 lines
144 B
Kotlin
9 lines
144 B
Kotlin
class KotlinClass<T> {
|
|
|
|
val T.kotlinVal: Int
|
|
get() = 1
|
|
|
|
}
|
|
|
|
fun kotlinUser(kc: KotlinClass<String>) = with(kc) { "hello world".kotlinVal }
|