Fixed loading integral constants from compiled classes.

This commit is contained in:
Evgeny Gerashchenko
2014-06-20 17:47:48 +04:00
parent 111feb2574
commit bf442a9700
9 changed files with 125 additions and 1 deletions
@@ -0,0 +1,17 @@
//ALLOW_AST_ACCESS
package test
val b: Byte = 100
val b1: Byte = 1
val s: Short = 20000
val s1: Short = 1
val i: Int = 2000000
val i1: Short = 1
val l: Long = 2000000000000L
val l1: Long = 1
val f: Float = 3.14f
val d: Double = 3.14
val bb: Boolean = true
val c: Char = '\u03c0' // pi symbol
val str: String = ":)"
@@ -0,0 +1,28 @@
package test
internal val b: kotlin.Byte = 100.toByte()
internal fun <get-b>(): kotlin.Byte
internal val b1: kotlin.Byte = 1.toByte()
internal fun <get-b1>(): kotlin.Byte
internal val bb: kotlin.Boolean = true
internal fun <get-bb>(): kotlin.Boolean
internal val c: kotlin.Char = #960(π)
internal fun <get-c>(): kotlin.Char
internal val d: kotlin.Double = 3.14.toDouble()
internal fun <get-d>(): kotlin.Double
internal val f: kotlin.Float = 3.14.toFloat()
internal fun <get-f>(): kotlin.Float
internal val i: kotlin.Int = 2000000
internal fun <get-i>(): kotlin.Int
internal val i1: kotlin.Short = 1.toShort()
internal fun <get-i1>(): kotlin.Short
internal val l: kotlin.Long = 2000000000000.toLong()
internal fun <get-l>(): kotlin.Long
internal val l1: kotlin.Long = 1.toLong()
internal fun <get-l1>(): kotlin.Long
internal val s: kotlin.Short = 20000.toShort()
internal fun <get-s>(): kotlin.Short
internal val s1: kotlin.Short = 1.toShort()
internal fun <get-s1>(): kotlin.Short
internal val str: kotlin.String = ":)"
internal fun <get-str>(): kotlin.String