Ignore redundant projections for declaration-site variance
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
class Out<out E>
|
||||
interface Open
|
||||
class Final
|
||||
|
||||
fun foo(x: Out<out Open>, y: Out<out Final>): Out<out Open> = Out()
|
||||
|
||||
// method: RedundantProjectionsKt::foo
|
||||
// jvm signature: (LOut;LOut;)LOut;
|
||||
// generic signature: (LOut<+LOpen;>;LOut<LFinal;>;)LOut<LOpen;>;
|
||||
|
||||
class In<in F>
|
||||
|
||||
fun bar(x: In<in Open>, y: In<in Any?>): In<in Open> = In()
|
||||
|
||||
// method: RedundantProjectionsKt::bar
|
||||
// jvm signature: (LIn;LIn;)LIn;
|
||||
// generic signature: (LIn<-LOpen;>;LIn<Ljava/lang/Object;>;)LIn<LOpen;>;
|
||||
Reference in New Issue
Block a user