Promote collection builders to stable #KT-47421

This commit is contained in:
Abduqodiri Qurbonzoda
2021-09-21 11:25:28 +00:00
committed by Space
parent 72ab6d5e7e
commit 261d0c2783
19 changed files with 39 additions and 82 deletions
@@ -2,7 +2,7 @@ class DropDownComponent<T : Any>(val initialValues: List<T>)
fun test(strings: List<String>) {
val dropDown = DropDownComponent(
initialValues = <!OPT_IN_USAGE_ERROR!>buildList<!> {
initialValues = buildList {
addAll(strings)
}
)
@@ -1,5 +1,5 @@
fun test_1() {
val list = <!OPT_IN_USAGE_ERROR!>buildList<!> {
val list = buildList {
add("")
}
takeList(list)