Files
kotlin-fork/idea/testData/android/folding/plurals.kt
T
Vyacheslav Gerasimov a907ec92b5 Implement Android resource reference folding
#KT-15451 Fixed
2017-03-03 16:18:20 +03:00

10 lines
391 B
Kotlin
Vendored

package com.myapp
import android.content.Context
fun Context.testPlurals(quantity: Int) <fold text='{...}' expand='true'>{
val plural1 = <fold text='"Reference One"' expand='false'>resources.getQuantityString(R.plurals.first, quantity)</fold>
val plural2 = <fold text='Quantity One' expand='false'>this.getResources().getQuantityString(R.plurals.second, quantity)</fold>
}</fold>