Promote collection builders to stable #KT-47421
This commit is contained in:
committed by
Space
parent
72ab6d5e7e
commit
261d0c2783
+1
-1
@@ -7,7 +7,7 @@ interface FirFunctionCall : FirBase
|
||||
fun foo(statements: List<FirBase>, arguments: List<FirBase>, explicitReceiver: FirBase): List<FirFunctionCall> {
|
||||
|
||||
val firstCalls = with(statements.last() as FirFunctionCall) setCall@{
|
||||
<!OPT_IN_USAGE_ERROR!>buildList<!> {
|
||||
buildList {
|
||||
add(this@setCall)
|
||||
with(arguments.last() as FirFunctionCall) plusCall@{
|
||||
add(this@plusCall)
|
||||
|
||||
+1
-1
@@ -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)
|
||||
}
|
||||
)
|
||||
|
||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
fun test_1() {
|
||||
val list = <!OPT_IN_USAGE_ERROR!>buildList<!> {
|
||||
val list = buildList {
|
||||
add("")
|
||||
}
|
||||
takeList(list)
|
||||
|
||||
Reference in New Issue
Block a user