From 1d70b5d625aa5195386e225c97eeeff27f702a40 Mon Sep 17 00:00:00 2001 From: Svyatoslav Scherbina Date: Tue, 4 Feb 2020 13:19:07 +0300 Subject: [PATCH] Migrate tests to new `@Throws` rules --- backend.native/tests/framework/values/values.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend.native/tests/framework/values/values.kt b/backend.native/tests/framework/values/values.kt index 72701384746..c2c9b1397d8 100644 --- a/backend.native/tests/framework/values/values.kt +++ b/backend.native/tests/framework/values/values.kt @@ -255,13 +255,13 @@ fun multiply(int: Int, long: Long) = int * long class MyException : Exception() open class BridgeBase { - @Throws + @Throws(MyException::class) open fun foo1(): Any = Any() - @Throws + @Throws(MyException::class) open fun foo2(): Int = 42 - @Throws + @Throws(MyException::class) open fun foo3(): Unit = Unit - @Throws + @Throws(MyException::class) open fun foo4(): Nothing? = throw IllegalStateException() }