<Implementing interfaces in Korlin> could anyone e...
# stackoverflow
u
Implementing interfaces in Korlin could anyone explain to me the syntax of this interface implementation? Why I need to use the sign '=' to implement CommandLineRunner. When I use sign ':'(accord to basic syntax http://kotlinlang.org/docs/reference/interfaces.html) compiler requires a return statement. @SpringBootApplication class Application{ @Bean fun imageProcess(repo: MongoRepository) = CommandLineRunner {...}