Fix warnings in stdlib/compiler/plugins/test code

This commit is contained in:
Alexander Udalov
2020-11-26 21:25:01 +01:00
parent b3d85e656e
commit 221f44da5f
48 changed files with 109 additions and 101 deletions
@@ -146,6 +146,7 @@ public expect fun Throwable.printStackTrace(): Unit
* suppressed in order to deliver this exception.
*/
@SinceKotlin("1.4")
@Suppress("EXTENSION_SHADOWED_BY_MEMBER")
public expect fun Throwable.addSuppressed(exception: Throwable)
/**
@@ -157,4 +158,4 @@ public expect fun Throwable.addSuppressed(exception: Throwable)
* - if this [Throwable] instance has disabled the suppression.
*/
@SinceKotlin("1.4")
public expect val Throwable.suppressedExceptions: List<Throwable>
public expect val Throwable.suppressedExceptions: List<Throwable>
@@ -107,6 +107,7 @@ public expect annotation class JvmWildcard()
* Adding and removing the annotation is binary incompatible change, since inline classes' methods and functions with inline classes
* in their signature are mangled.
*/
@Suppress("NEWER_VERSION_IN_SINCE_KOTLIN")
@Target(CLASS)
@MustBeDocumented
@SinceKotlin("1.5")
@@ -116,6 +117,7 @@ public expect annotation class JvmInline()
/**
* Instructs compiler to mark the class as a record and generate relevant toString/equals/hashCode methods
*/
@Suppress("NEWER_VERSION_IN_SINCE_KOTLIN")
@Target(AnnotationTarget.CLASS)
@MustBeDocumented
@OptionalExpectation