mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
We are no longer bound to the platform-specific directories, so simplify the test organization. If you don't want this change, just skip merging this PR. It's purely optional. I kept the platform-specific directories around under `kotlin`, but you could also easily merge all these together if you find them unhelpful. I'll leave that change to you.
10 lines
454 B
Java
10 lines
454 B
Java
public class Test {
|
|
|
|
// This gets mapped to kotlin.Iterable<out T>, meaning we must reintroduce the use-site extends variance to get a type consistent with Java.
|
|
public static void needlessExtends(Iterable<? extends String> l) { }
|
|
|
|
// This type is defined KotlinConsumer<in T>, meaning we must reintroduce the use-site extends variance to get a type consistent with Java.
|
|
public static void needlessSuper(KotlinConsumer<? super Object> l) { }
|
|
|
|
}
|