Use kotlin.Throws in NativeThrowsChecker

KT-35468
This commit is contained in:
Denis Zharkov
2020-04-23 15:27:25 +03:00
committed by Ilya Gorbunov
parent d0f4631192
commit 45481b214a
3 changed files with 55 additions and 44 deletions
+12 -2
View File
@@ -1,7 +1,17 @@
// FILE: annotation.kt
// FILE: throws.kt
package kotlin
import kotlin.reflect.KClass
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.CONSTRUCTOR)
@Retention(AnnotationRetention.SOURCE)
public annotation class Throws(vararg val exceptionClasses: KClass<out Throwable>)
// FILE: native.kt
package kotlin.native
annotation class Throws(vararg val exceptionClasses: kotlin.reflect.KClass<out Throwable>)
@Deprecated("")
public typealias Throws = kotlin.Throws
// FILE: test.kt
class Exception1 : Throwable()