You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import com.test.`object`.Producer as Producer1
class Consumer(producer1: Producer1<String>) {
val x = 1
}
Observed Behavior
But it fails with ktlint-repro/src/main/kotlin/Consumer.kt:1:1: Unused import
If I refactor com.test.`object`.Producer to a package name that does not require ` then ktlint passes.
Steps to Reproduce
Run ktlint on the above file.
Your Environment
Version of ktlint used: 0.39.0
Name and version (or code for custom task) of integration used (Gradle plugin, Maven plugin, command line, custom Gradle task): Gradle plugin "org.jlleitschuh.gradle.ktlint" version "9.4.0"
Version of Gradle used (if applicable): 6.1.1
Operating System and version: Mac OS
Link to your project (if it's a public repository): N/A
The text was updated successfully, but these errors were encountered:
Expected Behavior
I expect the following code to pass lint check.
Observed Behavior
But it fails with
ktlint-repro/src/main/kotlin/Consumer.kt:1:1: Unused import
If I refactor
com.test.`object`.Producer
to a package name that does not require ` then ktlint passes.Steps to Reproduce
Run ktlint on the above file.
Your Environment
The text was updated successfully, but these errors were encountered: