Actually, the question in the title. When trying to compile something like this:
@Retention(AnnotationRetention.RUNTIME) @Target(AnnotationTarget.FUNCTION) annotation class Argument(val name: String, val completion: () -> Collection<String>) I get an error that says () -> Collection<String> - Invalid type of annotation member. I understand that to do what I want is impossible?