[KLIB tool] Update KLIB metadata dump tests
^KT-62340
This commit is contained in:
committed by
Space Team
parent
f9f97f2050
commit
07767f88e2
Vendored
+107
-29
@@ -1,31 +1,109 @@
|
||||
package test {
|
||||
class Class constructor() {
|
||||
val arrayConst: Any = {1.toByte(), 2.toByte()}
|
||||
val booleanConst: Boolean = true
|
||||
val byteConst: Byte = 10.toByte()
|
||||
val charConst: Char = \u0041 ('A')
|
||||
val doubleConst: Double = 3.0.toDouble()
|
||||
val enumConst: Weapon? = Weapon.ROCK
|
||||
val floatConst: Float = 2.0.toFloat()
|
||||
val intConst: Int = 30
|
||||
val longConst: Long = 40.toLong()
|
||||
val shortConst: Short = 20.toShort()
|
||||
val stringConst: String = "abcd"
|
||||
library {
|
||||
// module name: <compileTimeConstants.kt>
|
||||
|
||||
library fragment {
|
||||
// package name: test
|
||||
|
||||
// class name: test/Class
|
||||
// class name: test/Weapon
|
||||
// class name: test/Weapon.PAPER
|
||||
// class name: test/Weapon.ROCK
|
||||
// class name: test/Weapon.SCISSORS
|
||||
|
||||
public final class test/Class : kotlin/Any {
|
||||
|
||||
public constructor()
|
||||
|
||||
public final val arrayConst: kotlin/Any /* = [1.toByte(), 2.toByte()] */
|
||||
public final get
|
||||
|
||||
public final val booleanConst: kotlin/Boolean /* = true */
|
||||
public final get
|
||||
|
||||
public final val byteConst: kotlin/Byte /* = 10.toByte() */
|
||||
public final get
|
||||
|
||||
public final val charConst: kotlin/Char /* = 'A' */
|
||||
public final get
|
||||
|
||||
public final val doubleConst: kotlin/Double /* = 3.0 */
|
||||
public final get
|
||||
|
||||
public final val enumConst: test/Weapon? /* = test/Weapon.ROCK */
|
||||
public final get
|
||||
|
||||
public final val floatConst: kotlin/Float /* = 2.0f */
|
||||
public final get
|
||||
|
||||
public final val intConst: kotlin/Int /* = 30 */
|
||||
public final get
|
||||
|
||||
public final val longConst: kotlin/Long /* = 40L */
|
||||
public final get
|
||||
|
||||
public final val shortConst: kotlin/Short /* = 20.toShort() */
|
||||
public final get
|
||||
|
||||
public final val stringConst: kotlin/String /* = "abcd" */
|
||||
public final get
|
||||
}
|
||||
enum class Weapon private constructor() : Enum<Weapon> {
|
||||
enum entry ROCK
|
||||
enum entry PAPER
|
||||
enum entry SCISSORS
|
||||
|
||||
public final enum class test/Weapon : kotlin/Enum<test/Weapon> {
|
||||
|
||||
private constructor()
|
||||
|
||||
ROCK,
|
||||
|
||||
PAPER,
|
||||
|
||||
SCISSORS,
|
||||
|
||||
// has Enum.entries
|
||||
}
|
||||
val arrayConst: Any = {1.toByte(), 2.toByte()}
|
||||
val booleanConst: Boolean = true
|
||||
val byteConst: Byte = 10.toByte()
|
||||
val charConst: Char = \u0041 ('A')
|
||||
val doubleConst: Double = 3.0.toDouble()
|
||||
val enumConst: Weapon? = Weapon.ROCK
|
||||
val floatConst: Float = 2.0.toFloat()
|
||||
val intConst: Int = 30
|
||||
val longConst: Long = 40.toLong()
|
||||
val shortConst: Short = 20.toShort()
|
||||
val stringConst: String = "abcd"
|
||||
}
|
||||
|
||||
public final enum entry test/Weapon.PAPER : test/Weapon {
|
||||
}
|
||||
|
||||
public final enum entry test/Weapon.ROCK : test/Weapon {
|
||||
}
|
||||
|
||||
public final enum entry test/Weapon.SCISSORS : test/Weapon {
|
||||
}
|
||||
|
||||
package {
|
||||
|
||||
public final val arrayConst: kotlin/Any /* = [1.toByte(), 2.toByte()] */
|
||||
public final get
|
||||
|
||||
public final val booleanConst: kotlin/Boolean /* = true */
|
||||
public final get
|
||||
|
||||
public final val byteConst: kotlin/Byte /* = 10.toByte() */
|
||||
public final get
|
||||
|
||||
public final val charConst: kotlin/Char /* = 'A' */
|
||||
public final get
|
||||
|
||||
public final val doubleConst: kotlin/Double /* = 3.0 */
|
||||
public final get
|
||||
|
||||
public final val enumConst: test/Weapon? /* = test/Weapon.ROCK */
|
||||
public final get
|
||||
|
||||
public final val floatConst: kotlin/Float /* = 2.0f */
|
||||
public final get
|
||||
|
||||
public final val intConst: kotlin/Int /* = 30 */
|
||||
public final get
|
||||
|
||||
public final val longConst: kotlin/Long /* = 40L */
|
||||
public final get
|
||||
|
||||
public final val shortConst: kotlin/Short /* = 20.toShort() */
|
||||
public final get
|
||||
|
||||
public final val stringConst: kotlin/String /* = "abcd" */
|
||||
public final get
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user