mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 08:31:35 +00:00
replace 'trait' keyword with 'interface' in user-visible messages and code generation tools
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
package test
|
||||
|
||||
public trait AdapterDoesntOverrideDeclaration {
|
||||
public interface AdapterDoesntOverrideDeclaration {
|
||||
|
||||
public trait Sub : test.AdapterDoesntOverrideDeclaration.Super {
|
||||
public interface Sub : test.AdapterDoesntOverrideDeclaration.Super {
|
||||
public abstract override /*1*/ /*fake_override*/ fun foo(/*0*/ p0: (() -> kotlin.Unit!)!): kotlin.Unit
|
||||
public final /*synthesized*/ fun foo(/*0*/ p0: (() -> kotlin.Unit)!): kotlin.Unit
|
||||
public abstract fun foo(/*0*/ p0: java.lang.Runnable!): kotlin.Unit
|
||||
}
|
||||
|
||||
public trait Super {
|
||||
public interface Super {
|
||||
public abstract fun foo(/*0*/ p0: (() -> kotlin.Unit!)!): kotlin.Unit
|
||||
}
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package test
|
||||
|
||||
public trait InheritedAdapterAndDeclaration {
|
||||
public interface InheritedAdapterAndDeclaration {
|
||||
|
||||
public trait Sub : test.InheritedAdapterAndDeclaration.Super {
|
||||
public interface Sub : test.InheritedAdapterAndDeclaration.Super {
|
||||
public abstract override /*1*/ /*fake_override*/ fun foo(/*0*/ p0: (() -> kotlin.Unit!)!): kotlin.Unit
|
||||
public final override /*1*/ /*fake_override*/ fun foo(/*0*/ p0: (() -> kotlin.Unit)!): kotlin.Unit
|
||||
public abstract override /*1*/ /*fake_override*/ fun foo(/*0*/ p0: java.lang.Runnable!): kotlin.Unit
|
||||
}
|
||||
|
||||
public trait Super {
|
||||
public interface Super {
|
||||
public abstract fun foo(/*0*/ p0: (() -> kotlin.Unit!)!): kotlin.Unit
|
||||
public final /*synthesized*/ fun foo(/*0*/ p0: (() -> kotlin.Unit)!): kotlin.Unit
|
||||
public abstract fun foo(/*0*/ p0: java.lang.Runnable!): kotlin.Unit
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
package test
|
||||
|
||||
public trait InheritedAmbiguousAdapters {
|
||||
public interface InheritedAmbiguousAdapters {
|
||||
|
||||
public trait Sub : test.InheritedAmbiguousAdapters.Super {
|
||||
public interface Sub : test.InheritedAmbiguousAdapters.Super {
|
||||
public final override /*1*/ /*fake_override*/ fun foo(/*0*/ p0: (() -> kotlin.Unit)!): kotlin.Unit
|
||||
public final override /*1*/ /*fake_override*/ fun foo(/*0*/ p0: (() -> kotlin.Unit)!): kotlin.Unit
|
||||
public abstract override /*1*/ /*fake_override*/ fun foo(/*0*/ p0: java.io.Closeable!): kotlin.Unit
|
||||
public abstract override /*1*/ /*fake_override*/ fun foo(/*0*/ p0: java.lang.Runnable!): kotlin.Unit
|
||||
}
|
||||
|
||||
public trait Super {
|
||||
public interface Super {
|
||||
public final /*synthesized*/ fun foo(/*0*/ p0: (() -> kotlin.Unit)!): kotlin.Unit
|
||||
public final /*synthesized*/ fun foo(/*0*/ p0: (() -> kotlin.Unit)!): kotlin.Unit
|
||||
public abstract fun foo(/*0*/ p0: java.io.Closeable!): kotlin.Unit
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
package test
|
||||
|
||||
public trait InheritedAndOverriddenAmbiguousAdapters {
|
||||
public interface InheritedAndOverriddenAmbiguousAdapters {
|
||||
|
||||
public trait Sub : test.InheritedAndOverriddenAmbiguousAdapters.Super {
|
||||
public interface Sub : test.InheritedAndOverriddenAmbiguousAdapters.Super {
|
||||
public final override /*1*/ /*fake_override*/ fun foo(/*0*/ p0: (() -> kotlin.Unit)!): kotlin.Unit
|
||||
public final override /*1*/ /*synthesized*/ fun foo(/*0*/ p0: (() -> kotlin.Unit)!): kotlin.Unit
|
||||
public abstract override /*1*/ /*fake_override*/ fun foo(/*0*/ p0: java.io.Closeable!): kotlin.Unit
|
||||
public abstract override /*1*/ fun foo(/*0*/ p0: java.lang.Runnable!): kotlin.Unit
|
||||
}
|
||||
|
||||
public trait Super {
|
||||
public interface Super {
|
||||
public final /*synthesized*/ fun foo(/*0*/ p0: (() -> kotlin.Unit)!): kotlin.Unit
|
||||
public final /*synthesized*/ fun foo(/*0*/ p0: (() -> kotlin.Unit)!): kotlin.Unit
|
||||
public abstract fun foo(/*0*/ p0: java.io.Closeable!): kotlin.Unit
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
public trait InheritedOverridden {
|
||||
public interface InheritedOverridden {
|
||||
|
||||
public open class Sub : test.InheritedOverridden.Super {
|
||||
public constructor Sub()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
public trait InheritedOverriddenAdapter {
|
||||
public interface InheritedOverriddenAdapter {
|
||||
|
||||
public open class Sub : test.InheritedOverriddenAdapter.Super {
|
||||
public constructor Sub()
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
package test
|
||||
|
||||
public trait InheritedSameAdapters {
|
||||
public interface InheritedSameAdapters {
|
||||
|
||||
public trait Sub : test.InheritedSameAdapters.Super1, test.InheritedSameAdapters.Super2 {
|
||||
public interface Sub : test.InheritedSameAdapters.Super1, test.InheritedSameAdapters.Super2 {
|
||||
public final override /*2*/ /*fake_override*/ fun foo(/*0*/ p0: (() -> kotlin.Unit)!): kotlin.Unit
|
||||
public abstract override /*2*/ /*fake_override*/ fun foo(/*0*/ p0: java.lang.Runnable!): kotlin.Unit
|
||||
}
|
||||
|
||||
public trait Super1 {
|
||||
public interface Super1 {
|
||||
public final /*synthesized*/ fun foo(/*0*/ p0: (() -> kotlin.Unit)!): kotlin.Unit
|
||||
public abstract fun foo(/*0*/ p0: java.lang.Runnable!): kotlin.Unit
|
||||
}
|
||||
|
||||
public trait Super2 {
|
||||
public interface Super2 {
|
||||
public final /*synthesized*/ fun foo(/*0*/ p0: (() -> kotlin.Unit)!): kotlin.Unit
|
||||
public abstract fun foo(/*0*/ p0: java.lang.Runnable!): kotlin.Unit
|
||||
}
|
||||
|
||||
@@ -1,23 +1,23 @@
|
||||
package test
|
||||
|
||||
public trait InheritedSameAdaptersWithSubstitution {
|
||||
public interface InheritedSameAdaptersWithSubstitution {
|
||||
|
||||
public trait Sub : test.InheritedSameAdaptersWithSubstitution.Super1, test.InheritedSameAdaptersWithSubstitution.Super2Substituted {
|
||||
public interface Sub : test.InheritedSameAdaptersWithSubstitution.Super1, test.InheritedSameAdaptersWithSubstitution.Super2Substituted {
|
||||
public final override /*2*/ /*fake_override*/ fun foo(/*0*/ p0: ((kotlin.String!, kotlin.String!) -> kotlin.Int)!): kotlin.Unit
|
||||
public abstract override /*2*/ /*fake_override*/ fun foo(/*0*/ p0: java.util.Comparator<kotlin.String!>!): kotlin.Unit
|
||||
}
|
||||
|
||||
public trait Super1 {
|
||||
public interface Super1 {
|
||||
public final /*synthesized*/ fun foo(/*0*/ p0: ((kotlin.String!, kotlin.String!) -> kotlin.Int)!): kotlin.Unit
|
||||
public abstract fun foo(/*0*/ p0: java.util.Comparator<kotlin.String!>!): kotlin.Unit
|
||||
}
|
||||
|
||||
public trait Super2</*0*/ T> {
|
||||
public interface Super2</*0*/ T> {
|
||||
public final /*synthesized*/ fun foo(/*0*/ p0: ((T!, T!) -> kotlin.Int)!): kotlin.Unit
|
||||
public abstract fun foo(/*0*/ p0: java.util.Comparator<T!>!): kotlin.Unit
|
||||
}
|
||||
|
||||
public trait Super2Substituted : test.InheritedSameAdaptersWithSubstitution.Super2<kotlin.String!> {
|
||||
public interface Super2Substituted : test.InheritedSameAdaptersWithSubstitution.Super2<kotlin.String!> {
|
||||
public final override /*1*/ /*fake_override*/ fun foo(/*0*/ p0: ((kotlin.String!, kotlin.String!) -> kotlin.Int)!): kotlin.Unit
|
||||
public abstract override /*1*/ /*fake_override*/ fun foo(/*0*/ p0: java.util.Comparator<kotlin.String!>!): kotlin.Unit
|
||||
}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
package test
|
||||
|
||||
public trait InheritedSimple {
|
||||
public interface InheritedSimple {
|
||||
|
||||
public trait Sub : test.InheritedSimple.Super {
|
||||
public interface Sub : test.InheritedSimple.Super {
|
||||
public final override /*1*/ /*fake_override*/ fun foo(/*0*/ p0: (() -> kotlin.Unit)!): kotlin.Unit
|
||||
public abstract override /*1*/ /*fake_override*/ fun foo(/*0*/ p0: java.lang.Runnable!): kotlin.Unit
|
||||
}
|
||||
|
||||
public trait Super {
|
||||
public interface Super {
|
||||
public final /*synthesized*/ fun foo(/*0*/ p0: (() -> kotlin.Unit)!): kotlin.Unit
|
||||
public abstract fun foo(/*0*/ p0: java.lang.Runnable!): kotlin.Unit
|
||||
}
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package test
|
||||
|
||||
public trait OverriddenAmbiguousAdapters {
|
||||
public interface OverriddenAmbiguousAdapters {
|
||||
|
||||
public trait Sub : test.OverriddenAmbiguousAdapters.Super {
|
||||
public interface Sub : test.OverriddenAmbiguousAdapters.Super {
|
||||
public abstract override /*2*/ fun foo(/*0*/ p0: (() -> kotlin.Unit!)!): kotlin.Unit
|
||||
public abstract override /*1*/ /*fake_override*/ fun foo(/*0*/ p0: java.io.Closeable!): kotlin.Unit
|
||||
public abstract override /*1*/ /*fake_override*/ fun foo(/*0*/ p0: java.lang.Runnable!): kotlin.Unit
|
||||
}
|
||||
|
||||
public trait Super {
|
||||
public interface Super {
|
||||
public final /*synthesized*/ fun foo(/*0*/ p0: (() -> kotlin.Unit)!): kotlin.Unit
|
||||
public final /*synthesized*/ fun foo(/*0*/ p0: (() -> kotlin.Unit)!): kotlin.Unit
|
||||
public abstract fun foo(/*0*/ p0: java.io.Closeable!): kotlin.Unit
|
||||
|
||||
Reference in New Issue
Block a user