Undeprecate @BuilderInference annotation #KT-52400 Declined
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
fun <T> foo(@<!DEPRECATION, OPT_IN_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) {}
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -12,7 +12,7 @@ fun test_2() {
|
||||
takeList(list)
|
||||
}
|
||||
|
||||
fun <E> myBuildList(@<!DEPRECATION, OPT_IN_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(@<!DEPRECATION, OPT_IN_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!!
|
||||
}
|
||||
|
||||
|
||||
@@ -970,8 +970,6 @@ public final class BooleanArray {
|
||||
@kotlin.annotation.Retention(value = AnnotationRetention.BINARY)
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.experimental.ExperimentalTypeInference
|
||||
@kotlin.Deprecated(message = "BuilderInference annotation may not be used anymore. The builder inference is enabled automatically for builder calls if needed")
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.9", hiddenSince = "1.10", warningSince = "1.7")
|
||||
public final annotation class BuilderInference : kotlin.Annotation {
|
||||
public constructor BuilderInference()
|
||||
}
|
||||
|
||||
@@ -921,8 +921,6 @@ public final class BooleanArray {
|
||||
@kotlin.annotation.Retention(value = AnnotationRetention.BINARY)
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.experimental.ExperimentalTypeInference
|
||||
@kotlin.Deprecated(message = "BuilderInference annotation may not be used anymore. The builder inference is enabled automatically for builder calls if needed")
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.9", hiddenSince = "1.10", warningSince = "1.7")
|
||||
public final annotation class BuilderInference : kotlin.Annotation {
|
||||
public constructor BuilderInference()
|
||||
}
|
||||
|
||||
@@ -34,8 +34,6 @@ import kotlin.experimental.ExperimentalTypeInference
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@SinceKotlin("1.3")
|
||||
@ExperimentalTypeInference
|
||||
@Deprecated("BuilderInference annotation may not be used anymore. The builder inference is enabled automatically for builder calls if needed")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.7", errorSince = "1.9", hiddenSince = "1.10")
|
||||
public annotation class BuilderInference
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user