Fix me!

Report a typo

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.

Write a program in Kotlin
// Write code here
class Cat(@Cool var name: String)
___

Create a free account to access the full topic