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
Please sign in to leave a comment.
This is not possible yet. Please, see https://youtrack.jetbrains.com/issue/KTIJ-21866.