diff --git a/js/js.libraries/src/core/generated/_ArraysJs.kt b/js/js.libraries/src/core/generated/_ArraysJs.kt index a18f75380d2..7cd4f4077fc 100644 --- a/js/js.libraries/src/core/generated/_ArraysJs.kt +++ b/js/js.libraries/src/core/generated/_ArraysJs.kt @@ -556,6 +556,7 @@ public inline operator fun CharArray.plus(elements: CharArray): CharArray { * Returns `true` if the two specified arrays are *structurally* equal to one another, * i.e. contain the same number of the same elements in the same order. */ +@SinceKotlin("1.1") @library("arrayEquals") public infix fun Array.contentEquals(other: Array): Boolean { return noImpl @@ -565,6 +566,7 @@ public infix fun Array.contentEquals(other: Array): Boolean { * Returns `true` if the two specified arrays are *structurally* equal to one another, * i.e. contain the same number of the same elements in the same order. */ +@SinceKotlin("1.1") @library("arrayEquals") public infix fun ByteArray.contentEquals(other: ByteArray): Boolean { return noImpl @@ -574,6 +576,7 @@ public infix fun ByteArray.contentEquals(other: ByteArray): Boolean { * Returns `true` if the two specified arrays are *structurally* equal to one another, * i.e. contain the same number of the same elements in the same order. */ +@SinceKotlin("1.1") @library("arrayEquals") public infix fun ShortArray.contentEquals(other: ShortArray): Boolean { return noImpl @@ -583,6 +586,7 @@ public infix fun ShortArray.contentEquals(other: ShortArray): Boolean { * Returns `true` if the two specified arrays are *structurally* equal to one another, * i.e. contain the same number of the same elements in the same order. */ +@SinceKotlin("1.1") @library("arrayEquals") public infix fun IntArray.contentEquals(other: IntArray): Boolean { return noImpl @@ -592,6 +596,7 @@ public infix fun IntArray.contentEquals(other: IntArray): Boolean { * Returns `true` if the two specified arrays are *structurally* equal to one another, * i.e. contain the same number of the same elements in the same order. */ +@SinceKotlin("1.1") @library("arrayEquals") public infix fun LongArray.contentEquals(other: LongArray): Boolean { return noImpl @@ -601,6 +606,7 @@ public infix fun LongArray.contentEquals(other: LongArray): Boolean { * Returns `true` if the two specified arrays are *structurally* equal to one another, * i.e. contain the same number of the same elements in the same order. */ +@SinceKotlin("1.1") @library("arrayEquals") public infix fun FloatArray.contentEquals(other: FloatArray): Boolean { return noImpl @@ -610,6 +616,7 @@ public infix fun FloatArray.contentEquals(other: FloatArray): Boolean { * Returns `true` if the two specified arrays are *structurally* equal to one another, * i.e. contain the same number of the same elements in the same order. */ +@SinceKotlin("1.1") @library("arrayEquals") public infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean { return noImpl @@ -619,6 +626,7 @@ public infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean { * Returns `true` if the two specified arrays are *structurally* equal to one another, * i.e. contain the same number of the same elements in the same order. */ +@SinceKotlin("1.1") @library("arrayEquals") public infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean { return noImpl @@ -628,6 +636,7 @@ public infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean { * Returns `true` if the two specified arrays are *structurally* equal to one another, * i.e. contain the same number of the same elements in the same order. */ +@SinceKotlin("1.1") @library("arrayEquals") public infix fun CharArray.contentEquals(other: CharArray): Boolean { return noImpl @@ -640,6 +649,7 @@ public infix fun CharArray.contentEquals(other: CharArray): Boolean { * If two corresponding elements are nested arrays, they are also compared deeply. * If any of arrays contains itself on any nesting level the behavior is undefined. */ +@SinceKotlin("1.1") @library("arrayDeepEquals") public infix fun Array.contentDeepEquals(other: Array): Boolean { return noImpl @@ -648,6 +658,7 @@ public infix fun Array.contentDeepEquals(other: Array): Boolea /** * Returns a string representation of the contents of the specified array as if it is a [List]. */ +@SinceKotlin("1.1") @library("arrayToString") public fun Array.contentToString(): String { return noImpl @@ -656,6 +667,7 @@ public fun Array.contentToString(): String { /** * Returns a string representation of the contents of the specified array as if it is a [List]. */ +@SinceKotlin("1.1") @library("arrayToString") public fun ByteArray.contentToString(): String { return noImpl @@ -664,6 +676,7 @@ public fun ByteArray.contentToString(): String { /** * Returns a string representation of the contents of the specified array as if it is a [List]. */ +@SinceKotlin("1.1") @library("arrayToString") public fun ShortArray.contentToString(): String { return noImpl @@ -672,6 +685,7 @@ public fun ShortArray.contentToString(): String { /** * Returns a string representation of the contents of the specified array as if it is a [List]. */ +@SinceKotlin("1.1") @library("arrayToString") public fun IntArray.contentToString(): String { return noImpl @@ -680,6 +694,7 @@ public fun IntArray.contentToString(): String { /** * Returns a string representation of the contents of the specified array as if it is a [List]. */ +@SinceKotlin("1.1") @library("arrayToString") public fun LongArray.contentToString(): String { return noImpl @@ -688,6 +703,7 @@ public fun LongArray.contentToString(): String { /** * Returns a string representation of the contents of the specified array as if it is a [List]. */ +@SinceKotlin("1.1") @library("arrayToString") public fun FloatArray.contentToString(): String { return noImpl @@ -696,6 +712,7 @@ public fun FloatArray.contentToString(): String { /** * Returns a string representation of the contents of the specified array as if it is a [List]. */ +@SinceKotlin("1.1") @library("arrayToString") public fun DoubleArray.contentToString(): String { return noImpl @@ -704,6 +721,7 @@ public fun DoubleArray.contentToString(): String { /** * Returns a string representation of the contents of the specified array as if it is a [List]. */ +@SinceKotlin("1.1") @library("arrayToString") public fun BooleanArray.contentToString(): String { return noImpl @@ -712,6 +730,7 @@ public fun BooleanArray.contentToString(): String { /** * Returns a string representation of the contents of the specified array as if it is a [List]. */ +@SinceKotlin("1.1") @library("arrayToString") public fun CharArray.contentToString(): String { return noImpl @@ -724,6 +743,7 @@ public fun CharArray.contentToString(): String { * If any of arrays contains itself on any nesting level that reference * is rendered as `"[...]"` to prevent recursion. */ +@SinceKotlin("1.1") @library("arrayDeepToString") public fun Array.contentDeepToString(): String { return noImpl @@ -732,6 +752,7 @@ public fun Array.contentDeepToString(): String { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@SinceKotlin("1.1") @library("arrayHashCode") public fun Array.contentHashCode(): Int { return noImpl @@ -740,6 +761,7 @@ public fun Array.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@SinceKotlin("1.1") @library("arrayHashCode") public fun ByteArray.contentHashCode(): Int { return noImpl @@ -748,6 +770,7 @@ public fun ByteArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@SinceKotlin("1.1") @library("arrayHashCode") public fun ShortArray.contentHashCode(): Int { return noImpl @@ -756,6 +779,7 @@ public fun ShortArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@SinceKotlin("1.1") @library("arrayHashCode") public fun IntArray.contentHashCode(): Int { return noImpl @@ -764,6 +788,7 @@ public fun IntArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@SinceKotlin("1.1") @library("arrayHashCode") public fun LongArray.contentHashCode(): Int { return noImpl @@ -772,6 +797,7 @@ public fun LongArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@SinceKotlin("1.1") @library("arrayHashCode") public fun FloatArray.contentHashCode(): Int { return noImpl @@ -780,6 +806,7 @@ public fun FloatArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@SinceKotlin("1.1") @library("arrayHashCode") public fun DoubleArray.contentHashCode(): Int { return noImpl @@ -788,6 +815,7 @@ public fun DoubleArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@SinceKotlin("1.1") @library("arrayHashCode") public fun BooleanArray.contentHashCode(): Int { return noImpl @@ -796,6 +824,7 @@ public fun BooleanArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@SinceKotlin("1.1") @library("arrayHashCode") public fun CharArray.contentHashCode(): Int { return noImpl @@ -807,6 +836,7 @@ public fun CharArray.contentHashCode(): Int { * * If any of arrays contains itself on any nesting level the behavior is undefined. */ +@SinceKotlin("1.1") @library("arrayDeepHashCode") public fun Array.contentDeepHashCode(): Int { return noImpl diff --git a/libraries/stdlib/src/generated/_Arrays.kt b/libraries/stdlib/src/generated/_Arrays.kt index 5f7aa7ab4fb..f1f498132e2 100644 --- a/libraries/stdlib/src/generated/_Arrays.kt +++ b/libraries/stdlib/src/generated/_Arrays.kt @@ -5156,6 +5156,7 @@ public fun CharArray.sortedWith(comparator: Comparator): List { * If any of arrays contains itself on any nesting level the behavior is undefined. */ @kotlin.jvm.JvmVersion +@SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline infix fun Array.contentDeepEquals(other: Array): Boolean { return Arrays.deepEquals(this, other) @@ -5168,6 +5169,7 @@ public inline infix fun Array.contentDeepEquals(other: Array): * If any of arrays contains itself on any nesting level the behavior is undefined. */ @kotlin.jvm.JvmVersion +@SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun Array.contentDeepHashCode(): Int { return Arrays.deepHashCode(this) @@ -5181,6 +5183,7 @@ public inline fun Array.contentDeepHashCode(): Int { * is rendered as `"[...]"` to prevent recursion. */ @kotlin.jvm.JvmVersion +@SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun Array.contentDeepToString(): String { return Arrays.deepToString(this) @@ -5191,6 +5194,7 @@ public inline fun Array.contentDeepToString(): String { * i.e. contain the same number of the same elements in the same order. */ @kotlin.jvm.JvmVersion +@SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline infix fun Array.contentEquals(other: Array): Boolean { return Arrays.equals(this, other) @@ -5201,6 +5205,7 @@ public inline infix fun Array.contentEquals(other: Array): Boo * i.e. contain the same number of the same elements in the same order. */ @kotlin.jvm.JvmVersion +@SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline infix fun ByteArray.contentEquals(other: ByteArray): Boolean { return Arrays.equals(this, other) @@ -5211,6 +5216,7 @@ public inline infix fun ByteArray.contentEquals(other: ByteArray): Boolean { * i.e. contain the same number of the same elements in the same order. */ @kotlin.jvm.JvmVersion +@SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline infix fun ShortArray.contentEquals(other: ShortArray): Boolean { return Arrays.equals(this, other) @@ -5221,6 +5227,7 @@ public inline infix fun ShortArray.contentEquals(other: ShortArray): Boolean { * i.e. contain the same number of the same elements in the same order. */ @kotlin.jvm.JvmVersion +@SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline infix fun IntArray.contentEquals(other: IntArray): Boolean { return Arrays.equals(this, other) @@ -5231,6 +5238,7 @@ public inline infix fun IntArray.contentEquals(other: IntArray): Boolean { * i.e. contain the same number of the same elements in the same order. */ @kotlin.jvm.JvmVersion +@SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline infix fun LongArray.contentEquals(other: LongArray): Boolean { return Arrays.equals(this, other) @@ -5241,6 +5249,7 @@ public inline infix fun LongArray.contentEquals(other: LongArray): Boolean { * i.e. contain the same number of the same elements in the same order. */ @kotlin.jvm.JvmVersion +@SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline infix fun FloatArray.contentEquals(other: FloatArray): Boolean { return Arrays.equals(this, other) @@ -5251,6 +5260,7 @@ public inline infix fun FloatArray.contentEquals(other: FloatArray): Boolean { * i.e. contain the same number of the same elements in the same order. */ @kotlin.jvm.JvmVersion +@SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean { return Arrays.equals(this, other) @@ -5261,6 +5271,7 @@ public inline infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean { * i.e. contain the same number of the same elements in the same order. */ @kotlin.jvm.JvmVersion +@SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean { return Arrays.equals(this, other) @@ -5271,6 +5282,7 @@ public inline infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean * i.e. contain the same number of the same elements in the same order. */ @kotlin.jvm.JvmVersion +@SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline infix fun CharArray.contentEquals(other: CharArray): Boolean { return Arrays.equals(this, other) @@ -5280,6 +5292,7 @@ public inline infix fun CharArray.contentEquals(other: CharArray): Boolean { * Returns a hash code based on the contents of this array as if it is [List]. */ @kotlin.jvm.JvmVersion +@SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun Array.contentHashCode(): Int { return Arrays.hashCode(this) @@ -5289,6 +5302,7 @@ public inline fun Array.contentHashCode(): Int { * Returns a hash code based on the contents of this array as if it is [List]. */ @kotlin.jvm.JvmVersion +@SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun ByteArray.contentHashCode(): Int { return Arrays.hashCode(this) @@ -5298,6 +5312,7 @@ public inline fun ByteArray.contentHashCode(): Int { * Returns a hash code based on the contents of this array as if it is [List]. */ @kotlin.jvm.JvmVersion +@SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun ShortArray.contentHashCode(): Int { return Arrays.hashCode(this) @@ -5307,6 +5322,7 @@ public inline fun ShortArray.contentHashCode(): Int { * Returns a hash code based on the contents of this array as if it is [List]. */ @kotlin.jvm.JvmVersion +@SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun IntArray.contentHashCode(): Int { return Arrays.hashCode(this) @@ -5316,6 +5332,7 @@ public inline fun IntArray.contentHashCode(): Int { * Returns a hash code based on the contents of this array as if it is [List]. */ @kotlin.jvm.JvmVersion +@SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun LongArray.contentHashCode(): Int { return Arrays.hashCode(this) @@ -5325,6 +5342,7 @@ public inline fun LongArray.contentHashCode(): Int { * Returns a hash code based on the contents of this array as if it is [List]. */ @kotlin.jvm.JvmVersion +@SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun FloatArray.contentHashCode(): Int { return Arrays.hashCode(this) @@ -5334,6 +5352,7 @@ public inline fun FloatArray.contentHashCode(): Int { * Returns a hash code based on the contents of this array as if it is [List]. */ @kotlin.jvm.JvmVersion +@SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun DoubleArray.contentHashCode(): Int { return Arrays.hashCode(this) @@ -5343,6 +5362,7 @@ public inline fun DoubleArray.contentHashCode(): Int { * Returns a hash code based on the contents of this array as if it is [List]. */ @kotlin.jvm.JvmVersion +@SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun BooleanArray.contentHashCode(): Int { return Arrays.hashCode(this) @@ -5352,6 +5372,7 @@ public inline fun BooleanArray.contentHashCode(): Int { * Returns a hash code based on the contents of this array as if it is [List]. */ @kotlin.jvm.JvmVersion +@SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun CharArray.contentHashCode(): Int { return Arrays.hashCode(this) @@ -5361,6 +5382,7 @@ public inline fun CharArray.contentHashCode(): Int { * Returns a string representation of the contents of the specified array as if it is [List]. */ @kotlin.jvm.JvmVersion +@SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun Array.contentToString(): String { return Arrays.toString(this) @@ -5370,6 +5392,7 @@ public inline fun Array.contentToString(): String { * Returns a string representation of the contents of the specified array as if it is [List]. */ @kotlin.jvm.JvmVersion +@SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun ByteArray.contentToString(): String { return Arrays.toString(this) @@ -5379,6 +5402,7 @@ public inline fun ByteArray.contentToString(): String { * Returns a string representation of the contents of the specified array as if it is [List]. */ @kotlin.jvm.JvmVersion +@SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun ShortArray.contentToString(): String { return Arrays.toString(this) @@ -5388,6 +5412,7 @@ public inline fun ShortArray.contentToString(): String { * Returns a string representation of the contents of the specified array as if it is [List]. */ @kotlin.jvm.JvmVersion +@SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun IntArray.contentToString(): String { return Arrays.toString(this) @@ -5397,6 +5422,7 @@ public inline fun IntArray.contentToString(): String { * Returns a string representation of the contents of the specified array as if it is [List]. */ @kotlin.jvm.JvmVersion +@SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun LongArray.contentToString(): String { return Arrays.toString(this) @@ -5406,6 +5432,7 @@ public inline fun LongArray.contentToString(): String { * Returns a string representation of the contents of the specified array as if it is [List]. */ @kotlin.jvm.JvmVersion +@SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun FloatArray.contentToString(): String { return Arrays.toString(this) @@ -5415,6 +5442,7 @@ public inline fun FloatArray.contentToString(): String { * Returns a string representation of the contents of the specified array as if it is [List]. */ @kotlin.jvm.JvmVersion +@SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun DoubleArray.contentToString(): String { return Arrays.toString(this) @@ -5424,6 +5452,7 @@ public inline fun DoubleArray.contentToString(): String { * Returns a string representation of the contents of the specified array as if it is [List]. */ @kotlin.jvm.JvmVersion +@SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun BooleanArray.contentToString(): String { return Arrays.toString(this) @@ -5433,6 +5462,7 @@ public inline fun BooleanArray.contentToString(): String { * Returns a string representation of the contents of the specified array as if it is [List]. */ @kotlin.jvm.JvmVersion +@SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun CharArray.contentToString(): String { return Arrays.toString(this) diff --git a/libraries/tools/kotlin-stdlib-gen/src/templates/Arrays.kt b/libraries/tools/kotlin-stdlib-gen/src/templates/Arrays.kt index c8bc909b2a7..a3f351a9b67 100644 --- a/libraries/tools/kotlin-stdlib-gen/src/templates/Arrays.kt +++ b/libraries/tools/kotlin-stdlib-gen/src/templates/Arrays.kt @@ -47,6 +47,7 @@ fun arrays(): List { templates add f("contentEquals(other: SELF)") { only(ArraysOfObjects, ArraysOfPrimitives) jvmOnly(true) + since("1.1") inline(Inline.Only) infix(true) doc { @@ -62,6 +63,7 @@ fun arrays(): List { templates add f("contentDeepEquals(other: SELF)") { only(ArraysOfObjects) jvmOnly(true) + since("1.1") inline(Inline.Only) infix(true) doc { @@ -80,6 +82,7 @@ fun arrays(): List { templates add f("contentToString()") { only(ArraysOfObjects, ArraysOfPrimitives) jvmOnly(true) + since("1.1") inline(Inline.Only) doc { "Returns a string representation of the contents of the specified array as if it is [List]." } returns("String") @@ -89,6 +92,7 @@ fun arrays(): List { templates add f("contentDeepToString()") { only(ArraysOfObjects) jvmOnly(true) + since("1.1") inline(Inline.Only) doc { """ @@ -106,6 +110,7 @@ fun arrays(): List { templates add f("contentHashCode()") { only(ArraysOfObjects, ArraysOfPrimitives) jvmOnly(true) + since("1.1") inline(Inline.Only) doc { "Returns a hash code based on the contents of this array as if it is [List]." @@ -117,6 +122,7 @@ fun arrays(): List { templates add f("contentDeepHashCode()") { only(ArraysOfObjects) jvmOnly(true) + since("1.1") inline(Inline.Only) doc { """ diff --git a/libraries/tools/kotlin-stdlib-gen/src/templates/SpecialJS.kt b/libraries/tools/kotlin-stdlib-gen/src/templates/SpecialJS.kt index 7e52479fcc4..a95f3b01efb 100644 --- a/libraries/tools/kotlin-stdlib-gen/src/templates/SpecialJS.kt +++ b/libraries/tools/kotlin-stdlib-gen/src/templates/SpecialJS.kt @@ -167,6 +167,7 @@ fun specialJS(): List { templates add f("contentEquals(other: SELF)") { only(ArraysOfObjects, ArraysOfPrimitives) + since("1.1") infix(true) doc { """ @@ -181,6 +182,7 @@ fun specialJS(): List { templates add f("contentDeepEquals(other: SELF)") { only(ArraysOfObjects) + since("1.1") infix(true) doc { """ @@ -198,6 +200,7 @@ fun specialJS(): List { templates add f("contentToString()") { only(ArraysOfObjects, ArraysOfPrimitives) + since("1.1") doc { "Returns a string representation of the contents of the specified array as if it is a [List]." } annotations("""@library("arrayToString")""") returns("String") @@ -206,6 +209,7 @@ fun specialJS(): List { templates add f("contentDeepToString()") { only(ArraysOfObjects) + since("1.1") doc { """ Returns a string representation of the contents of this array as if it is a [List]. @@ -222,6 +226,7 @@ fun specialJS(): List { templates add f("contentHashCode()") { only(ArraysOfObjects, ArraysOfPrimitives) + since("1.1") doc { "Returns a hash code based on the contents of this array as if it is [List]." } @@ -232,6 +237,7 @@ fun specialJS(): List { templates add f("contentDeepHashCode()") { only(ArraysOfObjects) + since("1.1") doc { """ Returns a hash code based on the contents of this array as if it is [List]. diff --git a/libraries/tools/kotlin-stdlib-gen/src/templates/engine/Engine.kt b/libraries/tools/kotlin-stdlib-gen/src/templates/engine/Engine.kt index 9baa43e068b..0f81656d1ba 100644 --- a/libraries/tools/kotlin-stdlib-gen/src/templates/engine/Engine.kt +++ b/libraries/tools/kotlin-stdlib-gen/src/templates/engine/Engine.kt @@ -142,6 +142,7 @@ class GenericFunction(val signature: String, val keyword: String = "fun") { val platformName = PrimitiveProperty() val inline = InlineProperty() val jvmOnly = FamilyProperty() + val since = FamilyProperty() val typeParams = ArrayList() val returns = FamilyProperty() val operator = FamilyProperty() @@ -395,6 +396,9 @@ class GenericFunction(val signature: String, val keyword: String = "fun") { if (jvmOnly[f] ?: false) { builder.append("@kotlin.jvm.JvmVersion\n") } + since[f]?.let { since -> + builder.append("@SinceKotlin(\"$since\")\n") + } annotations[f]?.let { builder.append(it).append('\n') }