Minor, move builtins serializer test data
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package test
|
||||
|
||||
annotation class Empty
|
||||
|
||||
annotation class JustAnnotation(val annotation: Empty)
|
||||
|
||||
annotation class AnnotationArray(val annotationArray: Array<JustAnnotation>)
|
||||
|
||||
JustAnnotation(Empty())
|
||||
AnnotationArray(array())
|
||||
class C1
|
||||
|
||||
AnnotationArray(array(JustAnnotation(Empty()), JustAnnotation(Empty())))
|
||||
class C2
|
||||
@@ -0,0 +1,23 @@
|
||||
package test
|
||||
|
||||
internal final annotation class AnnotationArray : kotlin.Annotation {
|
||||
public constructor AnnotationArray(/*0*/ annotationArray: kotlin.Array<test.JustAnnotation>)
|
||||
internal final val annotationArray: kotlin.Array<test.JustAnnotation>
|
||||
}
|
||||
|
||||
test.JustAnnotation(annotation = test.Empty(): test.Empty) test.AnnotationArray(annotationArray = {}: kotlin.Array<test.JustAnnotation>) internal final class C1 {
|
||||
public constructor C1()
|
||||
}
|
||||
|
||||
test.AnnotationArray(annotationArray = {test.JustAnnotation(annotation = test.Empty(): test.Empty), test.JustAnnotation(annotation = test.Empty(): test.Empty)}: kotlin.Array<test.JustAnnotation>) internal final class C2 {
|
||||
public constructor C2()
|
||||
}
|
||||
|
||||
internal final annotation class Empty : kotlin.Annotation {
|
||||
public constructor Empty()
|
||||
}
|
||||
|
||||
internal final annotation class JustAnnotation : kotlin.Annotation {
|
||||
public constructor JustAnnotation(/*0*/ annotation: test.Empty)
|
||||
internal final val annotation: test.Empty
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package test
|
||||
|
||||
enum class Weapon {
|
||||
ROCK
|
||||
PAPER
|
||||
SCISSORS
|
||||
}
|
||||
|
||||
annotation class JustEnum(val weapon: Weapon)
|
||||
|
||||
annotation class EnumArray(val enumArray: Array<Weapon>)
|
||||
|
||||
JustEnum(Weapon.SCISSORS)
|
||||
EnumArray(array())
|
||||
class C1
|
||||
|
||||
EnumArray(array(Weapon.PAPER, Weapon.ROCK))
|
||||
class C2
|
||||
@@ -0,0 +1,51 @@
|
||||
package test
|
||||
|
||||
test.JustEnum(weapon = Weapon.SCISSORS: test.Weapon) test.EnumArray(enumArray = {}: kotlin.Array<test.Weapon>) internal final class C1 {
|
||||
public constructor C1()
|
||||
}
|
||||
|
||||
test.EnumArray(enumArray = {Weapon.PAPER, Weapon.ROCK}: kotlin.Array<test.Weapon>) internal final class C2 {
|
||||
public constructor C2()
|
||||
}
|
||||
|
||||
internal final annotation class EnumArray : kotlin.Annotation {
|
||||
public constructor EnumArray(/*0*/ enumArray: kotlin.Array<test.Weapon>)
|
||||
internal final val enumArray: kotlin.Array<test.Weapon>
|
||||
}
|
||||
|
||||
internal final annotation class JustEnum : kotlin.Annotation {
|
||||
public constructor JustEnum(/*0*/ weapon: test.Weapon)
|
||||
internal final val weapon: test.Weapon
|
||||
}
|
||||
|
||||
internal final enum class Weapon : kotlin.Enum<test.Weapon> {
|
||||
public enum entry ROCK : test.Weapon {
|
||||
private constructor ROCK()
|
||||
public final override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: test.Weapon): kotlin.Int
|
||||
public final override /*1*/ /*fake_override*/ fun name(): kotlin.String
|
||||
public final override /*1*/ /*fake_override*/ fun ordinal(): kotlin.Int
|
||||
}
|
||||
|
||||
public enum entry PAPER : test.Weapon {
|
||||
private constructor PAPER()
|
||||
public final override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: test.Weapon): kotlin.Int
|
||||
public final override /*1*/ /*fake_override*/ fun name(): kotlin.String
|
||||
public final override /*1*/ /*fake_override*/ fun ordinal(): kotlin.Int
|
||||
}
|
||||
|
||||
public enum entry SCISSORS : test.Weapon {
|
||||
private constructor SCISSORS()
|
||||
public final override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: test.Weapon): kotlin.Int
|
||||
public final override /*1*/ /*fake_override*/ fun name(): kotlin.String
|
||||
public final override /*1*/ /*fake_override*/ fun ordinal(): kotlin.Int
|
||||
}
|
||||
|
||||
private constructor Weapon()
|
||||
public final override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: test.Weapon): kotlin.Int
|
||||
public final override /*1*/ /*fake_override*/ fun name(): kotlin.String
|
||||
public final override /*1*/ /*fake_override*/ fun ordinal(): kotlin.Int
|
||||
|
||||
// Static members
|
||||
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): test.Weapon
|
||||
public final /*synthesized*/ fun values(): kotlin.Array<test.Weapon>
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
package test
|
||||
|
||||
annotation class PrimitiveArrays(
|
||||
val byteArray: ByteArray
|
||||
val charArray: CharArray,
|
||||
val shortArray: ShortArray,
|
||||
val intArray: IntArray,
|
||||
val longArray: LongArray,
|
||||
val floatArray: FloatArray,
|
||||
val doubleArray: DoubleArray,
|
||||
val booleanArray: BooleanArray
|
||||
)
|
||||
|
||||
PrimitiveArrays(
|
||||
byteArray = byteArray(-7, 7),
|
||||
charArray = charArray('%', 'z'),
|
||||
shortArray = shortArray(239),
|
||||
intArray = intArray(239017, -1),
|
||||
longArray = longArray(123456789123456789L),
|
||||
floatArray = floatArray(2.72f, 0f),
|
||||
doubleArray = doubleArray(-3.14),
|
||||
booleanArray = booleanArray(true, false, true)
|
||||
)
|
||||
class C1
|
||||
|
||||
PrimitiveArrays(
|
||||
byteArray = byteArray(),
|
||||
charArray = charArray(),
|
||||
shortArray = shortArray(),
|
||||
intArray = intArray(),
|
||||
longArray = longArray(),
|
||||
floatArray = floatArray(),
|
||||
doubleArray = doubleArray(),
|
||||
booleanArray = booleanArray()
|
||||
)
|
||||
class C2
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
package test
|
||||
|
||||
test.PrimitiveArrays(booleanArray = {true, false, true}: kotlin.BooleanArray, byteArray = {-7.toByte(), 7.toByte()}: kotlin.ByteArray, charArray = {\u0025 ('%'), \u007A ('z')}: kotlin.CharArray, doubleArray = {-3.14.toDouble()}: kotlin.DoubleArray, floatArray = {2.72.toFloat(), 0.0.toFloat()}: kotlin.FloatArray, intArray = {239017, -1}: kotlin.IntArray, longArray = {123456789123456789.toLong()}: kotlin.LongArray, shortArray = {239.toShort()}: kotlin.ShortArray) internal final class C1 {
|
||||
public constructor C1()
|
||||
}
|
||||
|
||||
test.PrimitiveArrays(booleanArray = {}: kotlin.BooleanArray, byteArray = {}: kotlin.ByteArray, charArray = {}: kotlin.CharArray, doubleArray = {}: kotlin.DoubleArray, floatArray = {}: kotlin.FloatArray, intArray = {}: kotlin.IntArray, longArray = {}: kotlin.LongArray, shortArray = {}: kotlin.ShortArray) internal final class C2 {
|
||||
public constructor C2()
|
||||
}
|
||||
|
||||
internal final annotation class PrimitiveArrays : kotlin.Annotation {
|
||||
public constructor PrimitiveArrays(/*0*/ byteArray: kotlin.ByteArray, /*1*/ charArray: kotlin.CharArray, /*2*/ shortArray: kotlin.ShortArray, /*3*/ intArray: kotlin.IntArray, /*4*/ longArray: kotlin.LongArray, /*5*/ floatArray: kotlin.FloatArray, /*6*/ doubleArray: kotlin.DoubleArray, /*7*/ booleanArray: kotlin.BooleanArray)
|
||||
internal final val booleanArray: kotlin.BooleanArray
|
||||
internal final val byteArray: kotlin.ByteArray
|
||||
internal final val charArray: kotlin.CharArray
|
||||
internal final val doubleArray: kotlin.DoubleArray
|
||||
internal final val floatArray: kotlin.FloatArray
|
||||
internal final val intArray: kotlin.IntArray
|
||||
internal final val longArray: kotlin.LongArray
|
||||
internal final val shortArray: kotlin.ShortArray
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package test
|
||||
|
||||
annotation class Primitives(
|
||||
val byte: Byte,
|
||||
val char: Char,
|
||||
val short: Short,
|
||||
val int: Int,
|
||||
val long: Long,
|
||||
val float: Float,
|
||||
val double: Double,
|
||||
val boolean: Boolean
|
||||
)
|
||||
|
||||
Primitives(
|
||||
byte = 7,
|
||||
char = '%',
|
||||
short = 239,
|
||||
int = 239017,
|
||||
long = 123456789123456789L,
|
||||
float = 2.72f,
|
||||
double = -3.14,
|
||||
boolean = true
|
||||
)
|
||||
class C
|
||||
@@ -0,0 +1,17 @@
|
||||
package test
|
||||
|
||||
test.Primitives(boolean = true: kotlin.Boolean, byte = 7.toByte(): kotlin.Byte, char = \u0025 ('%'): kotlin.Char, double = -3.14.toDouble(): kotlin.Double, float = 2.72.toFloat(): kotlin.Float, int = 239017: kotlin.Int, long = 123456789123456789.toLong(): kotlin.Long, short = 239.toShort(): kotlin.Short) internal final class C {
|
||||
public constructor C()
|
||||
}
|
||||
|
||||
internal final annotation class Primitives : kotlin.Annotation {
|
||||
public constructor Primitives(/*0*/ byte: kotlin.Byte, /*1*/ char: kotlin.Char, /*2*/ short: kotlin.Short, /*3*/ int: kotlin.Int, /*4*/ long: kotlin.Long, /*5*/ float: kotlin.Float, /*6*/ double: kotlin.Double, /*7*/ boolean: kotlin.Boolean)
|
||||
internal final val boolean: kotlin.Boolean
|
||||
internal final val byte: kotlin.Byte
|
||||
internal final val char: kotlin.Char
|
||||
internal final val double: kotlin.Double
|
||||
internal final val float: kotlin.Float
|
||||
internal final val int: kotlin.Int
|
||||
internal final val long: kotlin.Long
|
||||
internal final val short: kotlin.Short
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package test
|
||||
|
||||
annotation class JustString(val string: String)
|
||||
|
||||
annotation class StringArray(val stringArray: Array<String>)
|
||||
|
||||
JustString("kotlin")
|
||||
StringArray(array())
|
||||
class C1
|
||||
|
||||
StringArray(array("java", ""))
|
||||
class C2
|
||||
@@ -0,0 +1,19 @@
|
||||
package test
|
||||
|
||||
test.JustString(string = "kotlin": kotlin.String) test.StringArray(stringArray = {}: kotlin.Array<kotlin.String>) internal final class C1 {
|
||||
public constructor C1()
|
||||
}
|
||||
|
||||
test.StringArray(stringArray = {"java", ""}: kotlin.Array<kotlin.String>) internal final class C2 {
|
||||
public constructor C2()
|
||||
}
|
||||
|
||||
internal final annotation class JustString : kotlin.Annotation {
|
||||
public constructor JustString(/*0*/ string: kotlin.String)
|
||||
internal final val string: kotlin.String
|
||||
}
|
||||
|
||||
internal final annotation class StringArray : kotlin.Annotation {
|
||||
public constructor StringArray(/*0*/ stringArray: kotlin.Array<kotlin.String>)
|
||||
internal final val stringArray: kotlin.Array<kotlin.String>
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package test
|
||||
|
||||
annotation class anno(val x: String)
|
||||
|
||||
|
||||
anno("top level function")
|
||||
fun f1(anno("top level function parameter") p: Int) {}
|
||||
|
||||
anno("top level property")
|
||||
val p1 = null
|
||||
|
||||
anno("extension function")
|
||||
fun Long.f2(anno("extension function parameter") p: Int) {}
|
||||
|
||||
anno("extension property")
|
||||
val Double.p2: Double get() = null
|
||||
|
||||
anno("top level class")
|
||||
class C1 [anno("constructor")] () {
|
||||
anno("member function")
|
||||
fun f3(anno("member function parameter") p: Int) {}
|
||||
|
||||
anno("member property")
|
||||
val p3 = null
|
||||
|
||||
anno("member extension function")
|
||||
fun String.f4() {}
|
||||
|
||||
anno("member extension property")
|
||||
val Int.v4: Int get() = this
|
||||
|
||||
anno("nested class")
|
||||
class C2
|
||||
|
||||
anno("class object")
|
||||
class object {}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package test
|
||||
|
||||
test.anno(x = "top level property": kotlin.String) internal val p1: kotlin.Nothing?
|
||||
test.anno(x = "extension property": kotlin.String) internal val kotlin.Double.p2: kotlin.Double
|
||||
test.anno(x = "top level function": kotlin.String) internal fun f1(/*0*/ test.anno(x = "top level function parameter": kotlin.String) p: kotlin.Int): kotlin.Unit
|
||||
test.anno(x = "extension function": kotlin.String) internal fun kotlin.Long.f2(/*0*/ test.anno(x = "extension function parameter": kotlin.String) p: kotlin.Int): kotlin.Unit
|
||||
|
||||
test.anno(x = "top level class": kotlin.String) internal final class C1 {
|
||||
test.anno(x = "constructor": kotlin.String) public constructor C1()
|
||||
test.anno(x = "member property": kotlin.String) internal final val p3: kotlin.Nothing?
|
||||
test.anno(x = "member extension property": kotlin.String) internal final val kotlin.Int.v4: kotlin.Int
|
||||
test.anno(x = "member function": kotlin.String) internal final fun f3(/*0*/ test.anno(x = "member function parameter": kotlin.String) p: kotlin.Int): kotlin.Unit
|
||||
test.anno(x = "member extension function": kotlin.String) internal final fun kotlin.String.f4(): kotlin.Unit
|
||||
|
||||
test.anno(x = "nested class": kotlin.String) internal final class C2 {
|
||||
public constructor C2()
|
||||
}
|
||||
|
||||
test.anno(x = "class object": kotlin.String) internal class object Default {
|
||||
private constructor Default()
|
||||
}
|
||||
}
|
||||
|
||||
internal final annotation class anno : kotlin.Annotation {
|
||||
public constructor anno(/*0*/ x: kotlin.String)
|
||||
internal final val x: kotlin.String
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package test
|
||||
|
||||
enum class Weapon {
|
||||
ROCK
|
||||
PAPER
|
||||
SCISSORS
|
||||
}
|
||||
|
||||
val byteConst: Byte = 10
|
||||
val shortConst: Short = 20
|
||||
val intConst: Int = 30
|
||||
val longConst: Long = 40
|
||||
val charConst: Char = 'A'
|
||||
val stringConst: String = "abcd"
|
||||
val booleanConst: Boolean = true
|
||||
val floatConst: Float = 2.0f
|
||||
val doubleConst: Double = 3.0
|
||||
val enumConst: Weapon? = Weapon.ROCK
|
||||
val arrayConst: Any = byteArray(1,2)
|
||||
|
||||
class Class {
|
||||
val byteConst: Byte = 10
|
||||
val shortConst: Short = 20
|
||||
val intConst: Int = 30
|
||||
val longConst: Long = 40
|
||||
val charConst: Char = 'A'
|
||||
val stringConst: String = "abcd"
|
||||
val booleanConst: Boolean = true
|
||||
val floatConst: Float = 2.0f
|
||||
val doubleConst: Double = 3.0
|
||||
val enumConst: Weapon? = Weapon.ROCK
|
||||
val arrayConst: Any = byteArray(1,2)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
package test
|
||||
|
||||
internal val arrayConst: kotlin.Any = {1.toByte(), 2.toByte()}
|
||||
internal val booleanConst: kotlin.Boolean = true
|
||||
internal val byteConst: kotlin.Byte = 10.toByte()
|
||||
internal val charConst: kotlin.Char = \u0041 ('A')
|
||||
internal val doubleConst: kotlin.Double = 3.0.toDouble()
|
||||
internal val enumConst: test.Weapon? = Weapon.ROCK
|
||||
internal val floatConst: kotlin.Float = 2.0.toFloat()
|
||||
internal val intConst: kotlin.Int = 30
|
||||
internal val longConst: kotlin.Long = 40.toLong()
|
||||
internal val shortConst: kotlin.Short = 20.toShort()
|
||||
internal val stringConst: kotlin.String = "abcd"
|
||||
|
||||
internal final class Class {
|
||||
public constructor Class()
|
||||
internal final val arrayConst: kotlin.Any = {1.toByte(), 2.toByte()}
|
||||
internal final val booleanConst: kotlin.Boolean = true
|
||||
internal final val byteConst: kotlin.Byte = 10.toByte()
|
||||
internal final val charConst: kotlin.Char = \u0041 ('A')
|
||||
internal final val doubleConst: kotlin.Double = 3.0.toDouble()
|
||||
internal final val enumConst: test.Weapon? = Weapon.ROCK
|
||||
internal final val floatConst: kotlin.Float = 2.0.toFloat()
|
||||
internal final val intConst: kotlin.Int = 30
|
||||
internal final val longConst: kotlin.Long = 40.toLong()
|
||||
internal final val shortConst: kotlin.Short = 20.toShort()
|
||||
internal final val stringConst: kotlin.String = "abcd"
|
||||
}
|
||||
|
||||
internal final enum class Weapon : kotlin.Enum<test.Weapon> {
|
||||
public enum entry ROCK : test.Weapon {
|
||||
private constructor ROCK()
|
||||
public final override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: test.Weapon): kotlin.Int
|
||||
public final override /*1*/ /*fake_override*/ fun name(): kotlin.String
|
||||
public final override /*1*/ /*fake_override*/ fun ordinal(): kotlin.Int
|
||||
}
|
||||
|
||||
public enum entry PAPER : test.Weapon {
|
||||
private constructor PAPER()
|
||||
public final override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: test.Weapon): kotlin.Int
|
||||
public final override /*1*/ /*fake_override*/ fun name(): kotlin.String
|
||||
public final override /*1*/ /*fake_override*/ fun ordinal(): kotlin.Int
|
||||
}
|
||||
|
||||
public enum entry SCISSORS : test.Weapon {
|
||||
private constructor SCISSORS()
|
||||
public final override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: test.Weapon): kotlin.Int
|
||||
public final override /*1*/ /*fake_override*/ fun name(): kotlin.String
|
||||
public final override /*1*/ /*fake_override*/ fun ordinal(): kotlin.Int
|
||||
}
|
||||
|
||||
private constructor Weapon()
|
||||
public final override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: test.Weapon): kotlin.Int
|
||||
public final override /*1*/ /*fake_override*/ fun name(): kotlin.String
|
||||
public final override /*1*/ /*fake_override*/ fun ordinal(): kotlin.Int
|
||||
|
||||
// Static members
|
||||
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): test.Weapon
|
||||
public final /*synthesized*/ fun values(): kotlin.Array<test.Weapon>
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package test
|
||||
|
||||
class Class {
|
||||
fun member() = null
|
||||
}
|
||||
|
||||
fun function(int: Int, string: String = "default"): Class
|
||||
|
||||
fun <T> T.extension(): T?
|
||||
|
||||
val property: Unit
|
||||
@@ -0,0 +1,10 @@
|
||||
package test
|
||||
|
||||
internal val property: kotlin.Unit
|
||||
internal fun function(/*0*/ int: kotlin.Int, /*1*/ string: kotlin.String = ...): test.Class
|
||||
internal fun </*0*/ T> T.extension(): T?
|
||||
|
||||
internal final class Class {
|
||||
public constructor Class()
|
||||
internal final fun member(): kotlin.Nothing?
|
||||
}
|
||||
Reference in New Issue
Block a user