It turns out that annotating class with Spring `@R...
# getting-started
m
It turns out that annotating class with Spring
@Repository
does that. Suppose the code below
Copy code
@Repository
class Person {
    val msg = "Hello"
    val prop = useValProperty(msg)
}

fun useValProperty(msg: String): Int {
    println(msg)
    return 42
}
IDEA highlights using
msg
property as
Accessing non-final property msg in constructor