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.
6 lines
228 B
Python
6 lines
228 B
Python
from create_database_utils import *
|
|
|
|
os.mkdir('build1')
|
|
os.mkdir('build2')
|
|
run_codeql_database_create(["kotlinc kConsumer.kt -d build1", "javac Test.java -cp build1 -d build2", "kotlinc user.kt -cp build1:build2"], lang="java")
|