Check compileJavaAgainstKotlin tests with .txt files
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
package test
|
||||
|
||||
public/*package*/ open class ClassObject {
|
||||
public/*package*/ constructor ClassObject()
|
||||
public/*package*/ open fun accessToClassObject(): kotlin.Unit
|
||||
public/*package*/ open fun accessToInnerClass(): kotlin.Unit
|
||||
public/*package*/ open fun accessToPackageObject(): kotlin.Unit
|
||||
}
|
||||
|
||||
internal object PackageInner {
|
||||
private constructor PackageInner()
|
||||
internal final val value: kotlin.Int
|
||||
internal final fun foo(): kotlin.Unit
|
||||
}
|
||||
|
||||
internal final class WithClassObject {
|
||||
public constructor WithClassObject()
|
||||
|
||||
internal companion object Companion {
|
||||
private constructor Companion()
|
||||
internal final val value: kotlin.Int
|
||||
internal final val valueWithGetter: kotlin.Int
|
||||
internal final var variable: kotlin.Int
|
||||
internal final var variableWithAccessors: kotlin.Int
|
||||
internal final fun foo(): kotlin.Unit
|
||||
}
|
||||
|
||||
internal final class MyInner {
|
||||
public constructor MyInner()
|
||||
internal final val value: kotlin.Int
|
||||
internal final fun foo(): kotlin.Unit
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package test
|
||||
|
||||
internal final class A {
|
||||
public constructor A(/*0*/ kotlin.Int = ...)
|
||||
internal final val a: kotlin.Int
|
||||
}
|
||||
|
||||
public/*package*/ open class Simple {
|
||||
public/*package*/ constructor Simple()
|
||||
public/*package*/ open fun foo(): kotlin.Unit
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
package test
|
||||
|
||||
internal final class A {
|
||||
public constructor A(/*0*/ kotlin.Int = ..., /*1*/ kotlin.String = ...)
|
||||
internal final val a: kotlin.Int
|
||||
internal final val b: kotlin.String
|
||||
}
|
||||
|
||||
public/*package*/ open class Simple {
|
||||
public/*package*/ constructor Simple()
|
||||
public/*package*/ open fun foo(): kotlin.Unit
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package test
|
||||
|
||||
public/*package*/ open class ExtendsAbstractListT {
|
||||
public/*package*/ constructor ExtendsAbstractListT()
|
||||
}
|
||||
|
||||
internal abstract class Mine</*0*/ T> : java.util.AbstractList<T> {
|
||||
public constructor Mine</*0*/ T>()
|
||||
protected/*protected and package*/ final /*fake_override*/ var modCount: kotlin.Int
|
||||
public open /*fake_override*/ fun add(/*0*/ T!): kotlin.Boolean
|
||||
public open /*fake_override*/ fun add(/*0*/ kotlin.Int, /*1*/ T!): kotlin.Unit
|
||||
public open /*fake_override*/ fun addAll(/*0*/ kotlin.Collection<T!>): kotlin.Boolean
|
||||
public open /*fake_override*/ fun addAll(/*0*/ kotlin.Int, /*1*/ (kotlin.MutableCollection<out T!>..kotlin.Collection<T!>?)): kotlin.Boolean
|
||||
public open /*fake_override*/ fun clear(): kotlin.Unit
|
||||
public open /*fake_override*/ fun contains(/*0*/ kotlin.Any?): kotlin.Boolean
|
||||
public open /*fake_override*/ fun containsAll(/*0*/ kotlin.Collection<kotlin.Any?>): kotlin.Boolean
|
||||
public abstract /*fake_override*/ fun get(/*0*/ kotlin.Int): T!
|
||||
public open /*fake_override*/ fun indexOf(/*0*/ kotlin.Any!): kotlin.Int
|
||||
public open /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public open /*fake_override*/ fun iterator(): kotlin.(Mutable)Iterator<T!>!
|
||||
public open /*fake_override*/ fun lastIndexOf(/*0*/ kotlin.Any!): kotlin.Int
|
||||
public open /*fake_override*/ fun listIterator(): kotlin.(Mutable)ListIterator<T!>!
|
||||
public open /*fake_override*/ fun listIterator(/*0*/ kotlin.Int): kotlin.(Mutable)ListIterator<T!>!
|
||||
invisible_fake open /*fake_override*/ fun outOfBoundsMsg(/*0*/ kotlin.Int): kotlin.String!
|
||||
invisible_fake open /*fake_override*/ fun rangeCheckForAdd(/*0*/ kotlin.Int): kotlin.Unit
|
||||
public open /*fake_override*/ fun remove(/*0*/ kotlin.Any?): kotlin.Boolean
|
||||
public open /*fake_override*/ fun remove(/*0*/ kotlin.Int): T!
|
||||
public open /*fake_override*/ fun removeAll(/*0*/ kotlin.Collection<kotlin.Any?>): kotlin.Boolean
|
||||
protected/*protected and package*/ open /*fake_override*/ fun removeRange(/*0*/ kotlin.Int, /*1*/ kotlin.Int): kotlin.Unit
|
||||
public open /*fake_override*/ fun retainAll(/*0*/ kotlin.Collection<kotlin.Any?>): kotlin.Boolean
|
||||
public open /*fake_override*/ fun set(/*0*/ kotlin.Int, /*1*/ T!): T!
|
||||
public abstract /*fake_override*/ fun size(): kotlin.Int
|
||||
public open /*fake_override*/ fun subList(/*0*/ kotlin.Int, /*1*/ kotlin.Int): kotlin.(Mutable)List<T!>!
|
||||
public open /*fake_override*/ fun toArray(): kotlin.Array<(out) kotlin.Any!>!
|
||||
public open /*fake_override*/ fun </*0*/ T> toArray(/*0*/ kotlin.Array<(out) T!>!): kotlin.Array<(out) T!>!
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package test
|
||||
|
||||
internal abstract class Mine : java.util.List<kotlin.String> {
|
||||
public constructor Mine()
|
||||
public abstract /*fake_override*/ fun add(/*0*/ kotlin.Int, /*1*/ kotlin.String!): kotlin.Unit
|
||||
public abstract /*fake_override*/ fun add(/*0*/ kotlin.String!): kotlin.Boolean
|
||||
public abstract /*fake_override*/ fun addAll(/*0*/ (kotlin.MutableCollection<out kotlin.String!>..kotlin.Collection<kotlin.String!>?)): kotlin.Boolean
|
||||
public abstract /*fake_override*/ fun addAll(/*0*/ kotlin.Int, /*1*/ (kotlin.MutableCollection<out kotlin.String!>..kotlin.Collection<kotlin.String!>?)): kotlin.Boolean
|
||||
public abstract /*fake_override*/ fun clear(): kotlin.Unit
|
||||
public abstract /*fake_override*/ fun contains(/*0*/ kotlin.Any!): kotlin.Boolean
|
||||
public abstract /*fake_override*/ fun containsAll(/*0*/ kotlin.(Mutable)Collection<*>!): kotlin.Boolean
|
||||
public abstract /*fake_override*/ fun get(/*0*/ kotlin.Int): kotlin.String!
|
||||
public abstract /*fake_override*/ fun indexOf(/*0*/ kotlin.Any!): kotlin.Int
|
||||
public abstract /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public abstract /*fake_override*/ fun iterator(): kotlin.(Mutable)Iterator<kotlin.String!>!
|
||||
public abstract /*fake_override*/ fun lastIndexOf(/*0*/ kotlin.Any!): kotlin.Int
|
||||
public abstract /*fake_override*/ fun listIterator(): kotlin.(Mutable)ListIterator<kotlin.String!>!
|
||||
public abstract /*fake_override*/ fun listIterator(/*0*/ kotlin.Int): kotlin.(Mutable)ListIterator<kotlin.String!>!
|
||||
public abstract /*fake_override*/ fun remove(/*0*/ kotlin.Any!): kotlin.Boolean
|
||||
public abstract /*fake_override*/ fun remove(/*0*/ kotlin.Int): kotlin.String!
|
||||
public abstract /*fake_override*/ fun removeAll(/*0*/ kotlin.(Mutable)Collection<*>!): kotlin.Boolean
|
||||
public abstract /*fake_override*/ fun retainAll(/*0*/ kotlin.(Mutable)Collection<*>!): kotlin.Boolean
|
||||
public abstract /*fake_override*/ fun set(/*0*/ kotlin.Int, /*1*/ kotlin.String!): kotlin.String!
|
||||
public abstract /*fake_override*/ fun size(): kotlin.Int
|
||||
public abstract /*fake_override*/ fun subList(/*0*/ kotlin.Int, /*1*/ kotlin.Int): kotlin.(Mutable)List<kotlin.String!>!
|
||||
public abstract /*fake_override*/ fun toArray(): kotlin.Array<(out) kotlin.Any!>!
|
||||
public abstract /*fake_override*/ fun </*0*/ T> toArray(/*0*/ kotlin.Array<(out) T!>!): kotlin.Array<(out) T!>!
|
||||
}
|
||||
|
||||
public/*package*/ open class PlainExtendsListString {
|
||||
public/*package*/ constructor PlainExtendsListString()
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package test
|
||||
|
||||
public/*package*/ open class ImplementsMapPP {
|
||||
public/*package*/ constructor ImplementsMapPP()
|
||||
}
|
||||
|
||||
internal abstract class Mine</*0*/ P1, /*1*/ P2> : java.util.Map<P2, P1> {
|
||||
public constructor Mine</*0*/ P1, /*1*/ P2>()
|
||||
public abstract /*fake_override*/ fun clear(): kotlin.Unit
|
||||
public abstract /*fake_override*/ fun containsKey(/*0*/ kotlin.Any!): kotlin.Boolean
|
||||
public abstract /*fake_override*/ fun containsValue(/*0*/ kotlin.Any!): kotlin.Boolean
|
||||
public abstract /*fake_override*/ fun entrySet(): kotlin.(Mutable)Set<kotlin.(Mutable)Map.(Mutable)Entry<P2!, P1!>!>!
|
||||
public abstract /*fake_override*/ fun get(/*0*/ kotlin.Any!): P1!
|
||||
public abstract /*fake_override*/ fun isEmpty(): kotlin.Boolean
|
||||
public abstract /*fake_override*/ fun keySet(): kotlin.(Mutable)Set<P2!>!
|
||||
public abstract /*fake_override*/ fun put(/*0*/ P2!, /*1*/ P1!): P1!
|
||||
public abstract /*fake_override*/ fun putAll(/*0*/ (kotlin.MutableMap<out P2!, out P1!>..kotlin.Map<out P2!, P1!>?)): kotlin.Unit
|
||||
public abstract /*fake_override*/ fun remove(/*0*/ kotlin.Any!): P1!
|
||||
public abstract /*fake_override*/ fun size(): kotlin.Int
|
||||
public abstract /*fake_override*/ fun values(): kotlin.(Mutable)Collection<P1!>!
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package test
|
||||
|
||||
public/*package*/ open class InnerClass {
|
||||
public/*package*/ constructor InnerClass()
|
||||
public/*package*/ final var field1: test.Outer.Inner1!
|
||||
public/*package*/ final var field2: test.Outer.Inner2!
|
||||
}
|
||||
|
||||
internal final class Outer {
|
||||
public constructor Outer()
|
||||
|
||||
internal final inner class Inner1 {
|
||||
public constructor Inner1()
|
||||
}
|
||||
|
||||
internal final inner class Inner2 {
|
||||
public constructor Inner2(/*0*/ kotlin.String)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package test
|
||||
|
||||
public/*package*/ open class InnerClassConstructors {
|
||||
public/*package*/ constructor InnerClassConstructors()
|
||||
|
||||
// Static members
|
||||
public open fun main(/*0*/ kotlin.Array<(out) kotlin.String!>!): kotlin.Unit
|
||||
}
|
||||
|
||||
internal final class Outer {
|
||||
public constructor Outer()
|
||||
|
||||
internal final inner class InnerGeneric {
|
||||
public constructor InnerGeneric(/*0*/ kotlin.List<kotlin.String>)
|
||||
}
|
||||
|
||||
internal final inner class InnerPrimitive {
|
||||
public constructor InnerPrimitive(/*0*/ kotlin.Int)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package test
|
||||
|
||||
public/*package*/ open class InnerClassOfGeneric {
|
||||
public/*package*/ constructor InnerClassOfGeneric()
|
||||
|
||||
// Static members
|
||||
public open fun main(/*0*/ kotlin.Array<(out) kotlin.String!>!): kotlin.Unit
|
||||
}
|
||||
|
||||
internal final class Outer</*0*/ T> {
|
||||
public constructor Outer</*0*/ T>()
|
||||
|
||||
internal final inner class Inner {
|
||||
public constructor Inner(/*0*/ kotlin.List<T>)
|
||||
}
|
||||
|
||||
internal final inner class InnerSimple {
|
||||
public constructor InnerSimple()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
internal final class Impossible</*0*/ P> {
|
||||
public constructor Impossible</*0*/ P>()
|
||||
}
|
||||
|
||||
public/*package*/ open class Simple {
|
||||
public/*package*/ constructor Simple()
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package test
|
||||
|
||||
internal fun bar(/*0*/ test.K<*>): kotlin.Unit
|
||||
|
||||
internal open class K</*0*/ out T : test.K<T>> {
|
||||
public constructor K</*0*/ out T : test.K<T>>()
|
||||
internal final fun foo(): test.K<*>
|
||||
internal final fun foo(/*0*/ test.K<*>): kotlin.Unit
|
||||
}
|
||||
|
||||
public open class StarProjection {
|
||||
public constructor StarProjection()
|
||||
public/*package*/ open fun foo(/*0*/ test.K<*>!): kotlin.Unit
|
||||
}
|
||||
|
||||
internal final class Sub : test.K<test.K<*>> {
|
||||
public constructor Sub()
|
||||
internal final /*fake_override*/ fun foo(): test.K<*>
|
||||
internal final /*fake_override*/ fun foo(/*0*/ test.K<*>): kotlin.Unit
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package test
|
||||
|
||||
internal final enum class MyEnum : kotlin.Enum<test.MyEnum> {
|
||||
public enum entry OK : test.MyEnum {
|
||||
private constructor OK()
|
||||
public final /*fake_override*/ fun compareTo(/*0*/ test.MyEnum): kotlin.Int
|
||||
public final /*fake_override*/ fun name(): kotlin.String
|
||||
public final /*fake_override*/ fun ordinal(): kotlin.Int
|
||||
}
|
||||
|
||||
private constructor MyEnum()
|
||||
public final /*fake_override*/ fun compareTo(/*0*/ test.MyEnum): kotlin.Int
|
||||
public final /*fake_override*/ fun name(): kotlin.String
|
||||
public final /*fake_override*/ fun ordinal(): kotlin.Int
|
||||
|
||||
// Static members
|
||||
public final /*synthesized*/ fun valueOf(/*0*/ kotlin.String): test.MyEnum
|
||||
public final /*synthesized*/ fun values(): kotlin.Array<test.MyEnum>
|
||||
}
|
||||
|
||||
public open class kt3561 {
|
||||
public constructor kt3561()
|
||||
public open fun getEntryName(): test.MyEnum!
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package test
|
||||
|
||||
internal final enum class MyEnum : kotlin.Enum<test.MyEnum> {
|
||||
public enum entry ENTRY : test.MyEnum {
|
||||
private constructor ENTRY()
|
||||
kotlin.deprecated(value = "": kotlin.String) internal final /*fake_override*/ val ord: kotlin.Int
|
||||
public final /*fake_override*/ fun compareTo(/*0*/ test.MyEnum): kotlin.Int
|
||||
internal final /*fake_override*/ fun f(/*0*/ java.lang.Deprecated() kotlin.Int): kotlin.Unit
|
||||
public final /*fake_override*/ fun name(): kotlin.String
|
||||
public final /*fake_override*/ fun ordinal(): kotlin.Int
|
||||
}
|
||||
|
||||
private constructor MyEnum(/*0*/ kotlin.deprecated(value = "": kotlin.String) kotlin.Int)
|
||||
kotlin.deprecated(value = "": kotlin.String) internal final val ord: kotlin.Int
|
||||
public final /*fake_override*/ fun compareTo(/*0*/ test.MyEnum): kotlin.Int
|
||||
internal final fun f(/*0*/ java.lang.Deprecated() kotlin.Int): kotlin.Unit
|
||||
public final /*fake_override*/ fun name(): kotlin.String
|
||||
public final /*fake_override*/ fun ordinal(): kotlin.Int
|
||||
|
||||
// Static members
|
||||
public final /*synthesized*/ fun valueOf(/*0*/ kotlin.String): test.MyEnum
|
||||
public final /*synthesized*/ fun values(): kotlin.Array<test.MyEnum>
|
||||
}
|
||||
|
||||
public open class kt4050 {
|
||||
public constructor kt4050()
|
||||
|
||||
// Static members
|
||||
public open fun main(/*0*/ kotlin.Array<(out) kotlin.String!>!): kotlin.Unit
|
||||
}
|
||||
Reference in New Issue
Block a user