Cover typed Kotlin property modifiers
ober
1f2b254f6c458deba661496a2af9f0baf2c2fe7b
--- a/tests/test-typed-kotlin.ss +++ b/tests/test-typed-kotlin.ss @@ -1473,6 +1473,7 @@ (type Context) (type View) (type Float32) + (type Int32) (extern (contextDensity (context : Context)) : Float32 (kotlin-call contextDensity)) (extern (densityReady (density : Float32)) : Bool @@ -1485,8 +1486,17 @@ (kotlin-call super performClick)) (class ReviewView ((context : Context)) (extends View context) + (object companion + (val requestCode : Int32 + (int32 10) + (modifiers private const))) (val density : Float32 (contextDensity context)) + (var title : String + (modifiers internal lateinit)) + (var selectedGeneration : Int32 + (int32 0) + (modifiers @Volatile internal)) (var selected : String "" (setter (value : String) @@ -1535,6 +1545,15 @@ (test-contains "typed class declaration lowers member property" class-declaration-kotlin "val density: Float = contextDensity(context)") +(test-contains "typed class declaration lowers companion object" + class-declaration-kotlin + "companion object {\n private const val requestCode: Int = 10") +(test-contains "typed class declaration lowers lateinit property" + class-declaration-kotlin + "internal lateinit var title: String") +(test-contains "typed class declaration lowers property modifiers" + class-declaration-kotlin + "@Volatile internal var selectedGeneration: Int = 0") (test-contains "typed class declaration lowers custom property setter" class-declaration-kotlin "var selected: String = \"\"\n set(value) {\n field = value\n markDirty()\n }")