How to auto-import within method chaining for a live template?

Answered

Defining live template text...

timber.log.Timber.tagged("123").error { object{}.javaClass.enclosingMethod?.name ?: "unknown method" }

...we get this import...

import timber.log.Timber

...but not this one.

import timber.log.error

Is there syntax to allow dot chained invocation target auto-imports?

Thanks

1

Please sign in to leave a comment.