Changing default nullability for type arguments to NotNull

This commit is contained in:
Andrey Breslav
2012-12-07 16:34:36 +04:00
parent f09054d1a0
commit f925bfccd0
33 changed files with 107 additions and 56 deletions
@@ -3,10 +3,10 @@ package test
public trait InheritNotVararg: Object {
public trait Super: Object {
public fun foo(p0: Array<out String?>?)
public fun foo(p0: Array<out String>?)
}
public trait Sub: Super {
override fun foo(p0: Array<out String?>?)
override fun foo(p0: Array<out String>?)
}
}
@@ -2,9 +2,9 @@ namespace test
public abstract trait test.InheritNotVararg : java.lang.Object {
public abstract trait test.InheritNotVararg.Sub : test.InheritNotVararg.Super {
public abstract override /*1*/ fun foo(/*0*/ p0: jet.Array<out jet.String?>?): jet.Tuple0
public abstract override /*1*/ fun foo(/*0*/ p0: jet.Array<out jet.String>?): jet.Tuple0
}
public abstract trait test.InheritNotVararg.Super : java.lang.Object {
public abstract fun foo(/*0*/ p0: jet.Array<out jet.String?>?): jet.Tuple0
public abstract fun foo(/*0*/ p0: jet.Array<out jet.String>?): jet.Tuple0
}
}
@@ -3,10 +3,10 @@ package test
public trait InheritNotVarargInteger: Object {
public trait Super: Object {
public fun foo(p0: Array<out Int?>?)
public fun foo(p0: Array<out Int>?)
}
public trait Sub: Super {
override fun foo(p0: Array<out Int?>?)
override fun foo(p0: Array<out Int>?)
}
}
@@ -2,9 +2,9 @@ namespace test
public abstract trait test.InheritNotVarargInteger : java.lang.Object {
public abstract trait test.InheritNotVarargInteger.Sub : test.InheritNotVarargInteger.Super {
public abstract override /*1*/ fun foo(/*0*/ p0: jet.Array<out jet.Int?>?): jet.Tuple0
public abstract override /*1*/ fun foo(/*0*/ p0: jet.Array<out jet.Int>?): jet.Tuple0
}
public abstract trait test.InheritNotVarargInteger.Super : java.lang.Object {
public abstract fun foo(/*0*/ p0: jet.Array<out jet.Int?>?): jet.Tuple0
public abstract fun foo(/*0*/ p0: jet.Array<out jet.Int>?): jet.Tuple0
}
}