Remove obsolete diagnostics suppression
The diagnostic NON_PUBLIC_PRIMARY_CONSTRUCTOR_OF_INLINE_CLASS is now obsolete because internal constructors of inline classes became allowed.
This commit is contained in:
-1
@@ -1,4 +1,3 @@
|
|||||||
// !LANGUAGE: +InlineClasses
|
// !LANGUAGE: +InlineClasses
|
||||||
|
|
||||||
@Suppress("NON_PUBLIC_PRIMARY_CONSTRUCTOR_OF_INLINE_CLASS")
|
|
||||||
inline class Z @PublishedApi internal constructor(val value: Int)
|
inline class Z @PublishedApi internal constructor(val value: Int)
|
||||||
-1
@@ -1,6 +1,5 @@
|
|||||||
// !LANGUAGE: +InlineClasses
|
// !LANGUAGE: +InlineClasses
|
||||||
// NO_CHECK_SOURCE_VS_BINARY
|
// NO_CHECK_SOURCE_VS_BINARY
|
||||||
@file:Suppress("NON_PUBLIC_PRIMARY_CONSTRUCTOR_OF_INLINE_CLASS")
|
|
||||||
package test
|
package test
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,6 @@ class UnsignedTypeGenerator(val type: UnsignedType, out: PrintWriter) : BuiltIns
|
|||||||
out.println("import kotlin.experimental.*")
|
out.println("import kotlin.experimental.*")
|
||||||
out.println()
|
out.println()
|
||||||
|
|
||||||
out.println("@Suppress(\"NON_PUBLIC_PRIMARY_CONSTRUCTOR_OF_INLINE_CLASS\")")
|
|
||||||
out.println("@SinceKotlin(\"1.3\")")
|
out.println("@SinceKotlin(\"1.3\")")
|
||||||
out.println("@ExperimentalUnsignedTypes")
|
out.println("@ExperimentalUnsignedTypes")
|
||||||
out.println("public inline class $className @PublishedApi internal constructor(@PublishedApi internal val data: $storageType) : Comparable<$className> {")
|
out.println("public inline class $className @PublishedApi internal constructor(@PublishedApi internal val data: $storageType) : Comparable<$className> {")
|
||||||
@@ -423,7 +422,6 @@ class UnsignedArrayGenerator(val type: UnsignedType, out: PrintWriter) : BuiltIn
|
|||||||
out.println("@SinceKotlin(\"1.3\")")
|
out.println("@SinceKotlin(\"1.3\")")
|
||||||
out.println("@ExperimentalUnsignedTypes")
|
out.println("@ExperimentalUnsignedTypes")
|
||||||
out.println("public inline class $arrayType")
|
out.println("public inline class $arrayType")
|
||||||
out.println("@Suppress(\"NON_PUBLIC_PRIMARY_CONSTRUCTOR_OF_INLINE_CLASS\")")
|
|
||||||
out.println("@PublishedApi")
|
out.println("@PublishedApi")
|
||||||
out.println("internal constructor(@PublishedApi internal val storage: $storageArrayType) : Collection<$elementType> {")
|
out.println("internal constructor(@PublishedApi internal val storage: $storageArrayType) : Collection<$elementType> {")
|
||||||
out.println(
|
out.println(
|
||||||
|
|||||||
+1
-1
@@ -14,4 +14,4 @@ suspend fun bar(): Unit {
|
|||||||
println(a + b)
|
println(a + b)
|
||||||
}
|
}
|
||||||
|
|
||||||
// LINES: 39 4 4 4 7 5 5 45 45 5 92 45 5 5 6 4 4 4 9 15 9 9 9 * 9 15 10 10 11 11 11 11 11 * 11 12 12 13 13 13 13 13 13 13 14 14 * 9 15 9 9 9 9
|
// LINES: 39 4 4 4 7 5 5 45 45 5 91 45 5 5 6 4 4 4 9 15 9 9 9 * 9 15 10 10 11 11 11 11 11 * 11 12 12 13 13 13 13 13 13 13 14 14 * 9 15 9 9 9 9
|
||||||
@@ -10,7 +10,6 @@ package kotlin
|
|||||||
* On the JVM, non-nullable values of this type are represented as values of the primitive type `char`.
|
* On the JVM, non-nullable values of this type are represented as values of the primitive type `char`.
|
||||||
*/
|
*/
|
||||||
// TODO: KT-35100
|
// TODO: KT-35100
|
||||||
//@Suppress("NON_PUBLIC_PRIMARY_CONSTRUCTOR_OF_INLINE_CLASS")
|
|
||||||
//public inline class Char internal constructor (val value: Int) : Comparable<Char> {
|
//public inline class Char internal constructor (val value: Int) : Comparable<Char> {
|
||||||
public class Char
|
public class Char
|
||||||
@OptIn(ExperimentalUnsignedTypes::class)
|
@OptIn(ExperimentalUnsignedTypes::class)
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import kotlin.jvm.JvmName
|
|||||||
* A discriminated union that encapsulates a successful outcome with a value of type [T]
|
* A discriminated union that encapsulates a successful outcome with a value of type [T]
|
||||||
* or a failure with an arbitrary [Throwable] exception.
|
* or a failure with an arbitrary [Throwable] exception.
|
||||||
*/
|
*/
|
||||||
@Suppress("NON_PUBLIC_PRIMARY_CONSTRUCTOR_OF_INLINE_CLASS")
|
|
||||||
@SinceKotlin("1.3")
|
@SinceKotlin("1.3")
|
||||||
public inline class Result<out T> @PublishedApi internal constructor(
|
public inline class Result<out T> @PublishedApi internal constructor(
|
||||||
@PublishedApi
|
@PublishedApi
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ package kotlin
|
|||||||
|
|
||||||
import kotlin.experimental.*
|
import kotlin.experimental.*
|
||||||
|
|
||||||
@Suppress("NON_PUBLIC_PRIMARY_CONSTRUCTOR_OF_INLINE_CLASS")
|
|
||||||
@SinceKotlin("1.3")
|
@SinceKotlin("1.3")
|
||||||
@ExperimentalUnsignedTypes
|
@ExperimentalUnsignedTypes
|
||||||
public inline class UByte @PublishedApi internal constructor(@PublishedApi internal val data: Byte) : Comparable<UByte> {
|
public inline class UByte @PublishedApi internal constructor(@PublishedApi internal val data: Byte) : Comparable<UByte> {
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ package kotlin
|
|||||||
@SinceKotlin("1.3")
|
@SinceKotlin("1.3")
|
||||||
@ExperimentalUnsignedTypes
|
@ExperimentalUnsignedTypes
|
||||||
public inline class UByteArray
|
public inline class UByteArray
|
||||||
@Suppress("NON_PUBLIC_PRIMARY_CONSTRUCTOR_OF_INLINE_CLASS")
|
|
||||||
@PublishedApi
|
@PublishedApi
|
||||||
internal constructor(@PublishedApi internal val storage: ByteArray) : Collection<UByte> {
|
internal constructor(@PublishedApi internal val storage: ByteArray) : Collection<UByte> {
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ package kotlin
|
|||||||
|
|
||||||
import kotlin.experimental.*
|
import kotlin.experimental.*
|
||||||
|
|
||||||
@Suppress("NON_PUBLIC_PRIMARY_CONSTRUCTOR_OF_INLINE_CLASS")
|
|
||||||
@SinceKotlin("1.3")
|
@SinceKotlin("1.3")
|
||||||
@ExperimentalUnsignedTypes
|
@ExperimentalUnsignedTypes
|
||||||
public inline class UInt @PublishedApi internal constructor(@PublishedApi internal val data: Int) : Comparable<UInt> {
|
public inline class UInt @PublishedApi internal constructor(@PublishedApi internal val data: Int) : Comparable<UInt> {
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ package kotlin
|
|||||||
@SinceKotlin("1.3")
|
@SinceKotlin("1.3")
|
||||||
@ExperimentalUnsignedTypes
|
@ExperimentalUnsignedTypes
|
||||||
public inline class UIntArray
|
public inline class UIntArray
|
||||||
@Suppress("NON_PUBLIC_PRIMARY_CONSTRUCTOR_OF_INLINE_CLASS")
|
|
||||||
@PublishedApi
|
@PublishedApi
|
||||||
internal constructor(@PublishedApi internal val storage: IntArray) : Collection<UInt> {
|
internal constructor(@PublishedApi internal val storage: IntArray) : Collection<UInt> {
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ package kotlin
|
|||||||
|
|
||||||
import kotlin.experimental.*
|
import kotlin.experimental.*
|
||||||
|
|
||||||
@Suppress("NON_PUBLIC_PRIMARY_CONSTRUCTOR_OF_INLINE_CLASS")
|
|
||||||
@SinceKotlin("1.3")
|
@SinceKotlin("1.3")
|
||||||
@ExperimentalUnsignedTypes
|
@ExperimentalUnsignedTypes
|
||||||
public inline class ULong @PublishedApi internal constructor(@PublishedApi internal val data: Long) : Comparable<ULong> {
|
public inline class ULong @PublishedApi internal constructor(@PublishedApi internal val data: Long) : Comparable<ULong> {
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ package kotlin
|
|||||||
@SinceKotlin("1.3")
|
@SinceKotlin("1.3")
|
||||||
@ExperimentalUnsignedTypes
|
@ExperimentalUnsignedTypes
|
||||||
public inline class ULongArray
|
public inline class ULongArray
|
||||||
@Suppress("NON_PUBLIC_PRIMARY_CONSTRUCTOR_OF_INLINE_CLASS")
|
|
||||||
@PublishedApi
|
@PublishedApi
|
||||||
internal constructor(@PublishedApi internal val storage: LongArray) : Collection<ULong> {
|
internal constructor(@PublishedApi internal val storage: LongArray) : Collection<ULong> {
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ package kotlin
|
|||||||
|
|
||||||
import kotlin.experimental.*
|
import kotlin.experimental.*
|
||||||
|
|
||||||
@Suppress("NON_PUBLIC_PRIMARY_CONSTRUCTOR_OF_INLINE_CLASS")
|
|
||||||
@SinceKotlin("1.3")
|
@SinceKotlin("1.3")
|
||||||
@ExperimentalUnsignedTypes
|
@ExperimentalUnsignedTypes
|
||||||
public inline class UShort @PublishedApi internal constructor(@PublishedApi internal val data: Short) : Comparable<UShort> {
|
public inline class UShort @PublishedApi internal constructor(@PublishedApi internal val data: Short) : Comparable<UShort> {
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ package kotlin
|
|||||||
@SinceKotlin("1.3")
|
@SinceKotlin("1.3")
|
||||||
@ExperimentalUnsignedTypes
|
@ExperimentalUnsignedTypes
|
||||||
public inline class UShortArray
|
public inline class UShortArray
|
||||||
@Suppress("NON_PUBLIC_PRIMARY_CONSTRUCTOR_OF_INLINE_CLASS")
|
|
||||||
@PublishedApi
|
@PublishedApi
|
||||||
internal constructor(@PublishedApi internal val storage: ShortArray) : Collection<UShort> {
|
internal constructor(@PublishedApi internal val storage: ShortArray) : Collection<UShort> {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user