Add quickfix for adding CancellableException to @Throws suspend fun
This commit is contained in:
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
package kotlin
|
||||
|
||||
import kotlin.reflect.KClass
|
||||
|
||||
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.CONSTRUCTOR)
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
public annotation class Throws(vararg val exceptionClasses: KClass<out Throwable>)
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
// "Add 'CancellationException::class'" "false"
|
||||
// ERROR: @Throws must have non-empty class list
|
||||
// ACTION: Make internal
|
||||
// ACTION: Make private
|
||||
|
||||
// No compilation error => no quickfix.
|
||||
<caret>@Throws()
|
||||
suspend fun emptyThrows() {}
|
||||
Reference in New Issue
Block a user