Fixed misused "variance" word.
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ import java.util.*;
|
||||
|
||||
import jet.runtime.typeinfo.KotlinSignature;
|
||||
|
||||
public class CustomVariance {
|
||||
public class CustomProjectionKind {
|
||||
@KotlinSignature("fun foo(): MutableList<out Number>")
|
||||
public List<Number> foo() {
|
||||
throw new UnsupportedOperationException();
|
||||
+1
-1
@@ -2,6 +2,6 @@ package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class CustomVariance : Object() {
|
||||
public open class CustomProjectionKind : Object() {
|
||||
public open fun foo() : MutableList<out Number> = throw UnsupportedOperationException()
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class CustomProjectionKind : java.lang.Object {
|
||||
public constructor CustomProjectionKind()
|
||||
public open fun foo() : jet.MutableList<out jet.Number>
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
package test
|
||||
|
||||
public open class CustomVariance : java.lang.Object {
|
||||
public constructor CustomVariance()
|
||||
public open fun foo() : jet.MutableList<out jet.Number>
|
||||
}
|
||||
+1
-1
@@ -6,7 +6,7 @@ import java.util.Collection;
|
||||
|
||||
import jet.runtime.typeinfo.KotlinSignature;
|
||||
|
||||
public interface InheritVariance {
|
||||
public interface InheritProjectionKind {
|
||||
|
||||
public interface Super {
|
||||
@KotlinSignature("fun foo(): MutableCollection<out Number>")
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
public trait InheritVariance: Object {
|
||||
public trait InheritProjectionKind: Object {
|
||||
|
||||
public trait Super: Object {
|
||||
public fun foo(): MutableCollection<out Number>
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
package test
|
||||
|
||||
public trait InheritVariance : java.lang.Object {
|
||||
public trait InheritProjectionKind : java.lang.Object {
|
||||
|
||||
public trait Sub : test.InheritVariance.Super {
|
||||
public trait Sub : test.InheritProjectionKind.Super {
|
||||
public abstract override /*1*/ fun foo() : jet.MutableList<out jet.Number>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user