https://kotlinlang.org logo
Title
j

jk2018

08/09/2018, 9:52 AM
Is there something like "explicit interface implementation" ( like in C# , see https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/interfaces/explicit-interface-implementation ) ?
E.g. instead of
builder.addInterceptor(object : Interceptor, AnkoLogger { override val loggerTag = "myTag" ....
I'd love to be able to say:
builder.addInterceptor(object : Interceptor, AnkoLogger { override val AnkoLogger.loggerTag = "myTag" ( or something like that... indicating that the loggerTag is defined in the AnkoLogger interface
a

Andreas Sinz

08/09/2018, 11:13 AM
you can't do that in kotlin
j

jk2018

08/09/2018, 4:34 PM
🙁