Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
This is the second solution implemented using the annotation and the inline function `findAnnotation`
else -> if ((type.classifier as KClass<out Any>).findAnnotation<InstagramErrorCode>() != null) ErrorCode.TimeOut else null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment