Use OPT_IN instead of EXPERIMENTAL in diagnostic names
This commit is contained in:
committed by
TeamCityServer
parent
2f07589b42
commit
3febabe977
+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@{
|
||||
<!EXPERIMENTAL_API_USAGE_ERROR!>buildList<!> {
|
||||
<!OPT_IN_USAGE_ERROR!>buildList<!> {
|
||||
add(this@setCall)
|
||||
with(arguments.last() as FirFunctionCall) plusCall@{
|
||||
add(this@plusCall)
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
fun <T> foo(@<!EXPERIMENTAL_API_USAGE_ERROR!>BuilderInference<!> block: MutableList<T>.() -> Unit): T = null!!
|
||||
fun <T> foo(@<!OPT_IN_USAGE_ERROR!>BuilderInference<!> block: MutableList<T>.() -> Unit): T = null!!
|
||||
|
||||
fun takeString(s: String) {}
|
||||
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ class DropDownComponent<T : Any>(val initialValues: List<T>)
|
||||
|
||||
fun test(strings: List<String>) {
|
||||
val dropDown = DropDownComponent(
|
||||
initialValues = <!EXPERIMENTAL_API_USAGE_ERROR!>buildList<!> {
|
||||
initialValues = <!OPT_IN_USAGE_ERROR!>buildList<!> {
|
||||
addAll(strings)
|
||||
}
|
||||
)
|
||||
|
||||
Vendored
+2
-2
@@ -1,5 +1,5 @@
|
||||
fun test_1() {
|
||||
val list = <!EXPERIMENTAL_API_USAGE_ERROR!>buildList<!> {
|
||||
val list = <!OPT_IN_USAGE_ERROR!>buildList<!> {
|
||||
add("")
|
||||
}
|
||||
takeList(list)
|
||||
@@ -12,7 +12,7 @@ fun test_2() {
|
||||
takeList(list)
|
||||
}
|
||||
|
||||
fun <E> myBuildList(@<!EXPERIMENTAL_API_USAGE_ERROR!>BuilderInference<!> builderAction: MutableList<E>.() -> Unit): List<E> {
|
||||
fun <E> myBuildList(@<!OPT_IN_USAGE_ERROR!>BuilderInference<!> builderAction: MutableList<E>.() -> Unit): List<E> {
|
||||
return ArrayList<E>().apply(builderAction)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ interface KtScope {
|
||||
fun getAllNames(): Set<String>
|
||||
}
|
||||
|
||||
inline fun <E> buildSet(@<!EXPERIMENTAL_API_USAGE_ERROR!>BuilderInference<!> builderAction: MutableSet<E>.() -> Unit): Set<E> {
|
||||
inline fun <E> buildSet(@<!OPT_IN_USAGE_ERROR!>BuilderInference<!> builderAction: MutableSet<E>.() -> Unit): Set<E> {
|
||||
return null!!
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user