mirror of
https://github.com/github/codeql.git
synced 2025-12-19 10:23:15 +01:00
For example, Java code might use `HasOutVariance<? extends String>`, or `HasInVariance<? super Object>`, both of which are needless wildcards and which the Kotlin extractor would previously have refused to reintroduce due to their not specifying a larger type than their bound. However this led to inconsistency with Java extraction, which extracts the type as it appears in source. This seems to particularly happen with generated code, e.g. the output of the Kotlin protobuf compiler.
5 lines
68 B
Kotlin
5 lines
68 B
Kotlin
fun f() {
|
|
Test.needlessExtends(null)
|
|
Test.needlessSuper(null)
|
|
}
|