Your friend created an annotation called @Cool with three targets (param, property, field). Now he is trying to apply this annotation to the field of the Cat class, but it doesn't work. Please fix the code below so the @Cool annotation can be applied to the field.
Annotation use-site targets
Fix me!
Report a typo
Write a program in Kotlin
// Write code here
class Cat(@Cool var name: String)
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.