Fixed misused "variance" word.

This commit is contained in:
Evgeny Gerashchenko
2013-02-15 19:14:11 +04:00
parent 19bc28b29d
commit 1de5da1e8a
9 changed files with 28 additions and 28 deletions
@@ -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();
@@ -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>
}
@@ -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,6 +1,6 @@
package test
public trait InheritVariance: Object {
public trait InheritProjectionKind: Object {
public trait Super: Object {
public fun foo(): MutableCollection<out Number>
@@ -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>
}