Serialize/Deserialize const modifier

This commit is contained in:
Denis Zharkov
2015-09-21 16:34:20 +03:00
parent b2b76d16d0
commit 98dd08109d
10 changed files with 69 additions and 9 deletions
+14
View File
@@ -0,0 +1,14 @@
//ALLOW_AST_ACCESS
package test
const private val topLevel = 1
object A {
const protected val inObject = 2
}
class B {
companion object {
const val inCompanion = 3
}
}
@@ -0,0 +1,20 @@
package test
private const val topLevel: kotlin.Int = 1
private fun <get-topLevel>(): kotlin.Int
public object A {
/*primary*/ private constructor A()
protected const final val inObject: kotlin.Int = 2
protected final fun <get-inObject>(): kotlin.Int
}
public final class B {
/*primary*/ public constructor B()
public companion object Companion {
/*primary*/ private constructor Companion()
public const final val inCompanion: kotlin.Int = 3
public final fun <get-inCompanion>(): kotlin.Int
}
}