by default, to allow Spring to do its thing. That would explain why
foo
is not being treated as a
final
function.
s
Sourabh Rawat
02/25/2022, 11:02 AM
Yea, that seems to be the case. But I was hoping for finding some way to support inline functions in an open class as well, at least when interacting with spring
s
Sam
02/25/2022, 11:04 AM
Just mark the function as explicitly
final
Sam
02/25/2022, 11:04 AM
Copy code
@Component
class Foo {
final inline fun foo() {}
}