Affects: 5.2.0.M3

When using the Kotlin-based Functional Bean Definition DSL I'm having a definition like this one:

val beans = beans {
    bean<CustomerService>()
    bean<CustomerHandler>()

    // 3 args resp. 1 arg
    bean(::router)    
    bean(::securityWebFilterChain)

    // userDetailsService has no args
    // bean(::userDetailsService) DOESN'T COMPILE
    bean { userDetailsService() }
}

For readability reasons it would be nice to also use a function reference when the bean function has no arguments.

Comment From: sdeleuze

Thanks for reporting it and sorry for the lag.