Join Slack
Powered by
Is there a way I can accept a function reference a...
# getting-started
j
James
09/08/2023, 3:23 PM
Is there a way I can accept a function reference as an annotation parameter?
Untitled.kt
🚫 1
r
Ruckus
09/08/2023, 3:29 PM
Allowed parameter types are: • Types that correspond to Java primitive types (Int, Long etc.) • Strings • Classes (Foo::class) • Enums • Other annotations • Arrays of the types listed above
✅ 1
Ruckus
09/08/2023, 3:30 PM
https://kotlinlang.org/docs/annotations.html
Open in Slack
Previous
Next