Skip to content

Commit

Permalink
Fix that descriptor cache did not inspect throws annotation of suspen…
Browse files Browse the repository at this point in the history
…d functions.
  • Loading branch information
FilipDolnik committed Apr 2, 2024
1 parent 4b77e3c commit 5c14f36
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ internal class ExposedDescriptorsCache(
private fun exposeThrownClasses(method: FunctionDescriptor) {
if (method.isSuspend && method.overriddenDescriptors.isEmpty()) {
exposeClass(KonanFqNames.cancellationException, method)
return
}

(method.annotations.findAnnotation(KonanFqNames.throws)?.firstArgument() as? ArrayValue?)
Expand Down

0 comments on commit 5c14f36

Please sign in to comment.