replace 'trait' keyword with 'interface' in user-visible messages and code generation tools
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
package test
|
||||
|
||||
public trait ErrorTypes {
|
||||
public interface ErrorTypes {
|
||||
|
||||
public trait Sub : test.ErrorTypes.Super {
|
||||
public interface Sub : test.ErrorTypes.Super {
|
||||
public abstract override /*1*/ fun errorTypeInParameter(/*0*/ list: kotlin.(Mutable)List<kotlin.Array<(out) [ERROR : Unresolved java classifier: T]!>!>!): kotlin.Unit
|
||||
public abstract override /*1*/ fun returnErrorType(): [ERROR : Unresolved java classifier: T]!
|
||||
}
|
||||
|
||||
public trait Super {
|
||||
public interface Super {
|
||||
public abstract fun errorTypeInParameter(/*0*/ list: kotlin.(Mutable)List<kotlin.Array<(out) [ERROR : Unresolved java classifier: T]!>!>!): kotlin.Unit
|
||||
public abstract fun returnErrorType(): [ERROR : Unresolved java classifier: T]!
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ package test
|
||||
|
||||
public /*synthesized*/ fun NullInAnnotation(/*0*/ function: () -> kotlin.Unit): test.NullInAnnotation
|
||||
|
||||
public trait NullInAnnotation {
|
||||
public interface NullInAnnotation {
|
||||
test.NullInAnnotation.Ann(a = null: kotlin.Nothing?, b = {null}: kotlin.Array<out kotlin.String>) public abstract fun foo(): kotlin.Unit
|
||||
|
||||
public final annotation class Ann : kotlin.Annotation {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
public trait ReturnInnerSubclassOfSupersInner {
|
||||
public interface ReturnInnerSubclassOfSupersInner {
|
||||
|
||||
public open class Sub</*0*/ B> : test.ReturnInnerSubclassOfSupersInner.Super<B!> {
|
||||
public constructor Sub</*0*/ B>()
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package test
|
||||
|
||||
public trait ReturnNotSubtype {
|
||||
public interface ReturnNotSubtype {
|
||||
|
||||
public trait Sub : test.ReturnNotSubtype.Super<kotlin.Boolean!> {
|
||||
public interface Sub : test.ReturnNotSubtype.Super<kotlin.Boolean!> {
|
||||
public abstract override /*1*/ fun _void(): kotlin.Boolean
|
||||
public abstract override /*1*/ fun array(): kotlin.Array<(out) java.lang.Void!>!
|
||||
public abstract override /*1*/ fun klass(): java.lang.Class<*>!
|
||||
@@ -11,7 +11,7 @@ public trait ReturnNotSubtype {
|
||||
public abstract override /*1*/ fun t(): java.lang.Void!
|
||||
}
|
||||
|
||||
public trait Super</*0*/ T> {
|
||||
public interface Super</*0*/ T> {
|
||||
public abstract fun _void(): kotlin.Unit
|
||||
public abstract fun array(): kotlin.Array<(out) T!>!
|
||||
public abstract fun klass(): java.lang.Class<out kotlin.CharSequence!>!
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
package test
|
||||
|
||||
public trait WrongNumberOfGenericParameters {
|
||||
public interface WrongNumberOfGenericParameters {
|
||||
public abstract fun o0(): test.WrongNumberOfGenericParameters.One<*>!
|
||||
public abstract fun o2(): test.WrongNumberOfGenericParameters.One<[ERROR : T]>!
|
||||
public abstract fun t1(): test.WrongNumberOfGenericParameters.Two<*, *>!
|
||||
public abstract fun z(): test.WrongNumberOfGenericParameters.Zero!
|
||||
|
||||
public trait One</*0*/ T> {
|
||||
public interface One</*0*/ T> {
|
||||
}
|
||||
|
||||
public trait Two</*0*/ P, /*1*/ Q> {
|
||||
public interface Two</*0*/ P, /*1*/ Q> {
|
||||
}
|
||||
|
||||
public trait Zero {
|
||||
public interface Zero {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user