mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
Reflect Kotlin's declaration-site variance in Java signatures
This commit is contained in:
@@ -2,6 +2,6 @@ class Question {
|
||||
// id2 is to prevent java type parameter type inference
|
||||
static <T> T id2(T p) { return p; }
|
||||
{
|
||||
java.util.List<String> s = id2(namespace.id(null));
|
||||
java.util.List<? extends String> s = id2(namespace.id(null));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user