Skip to content

UnusedPrivateClass: false negative with import directives #2816

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
t-kameyama opened this issue Jun 21, 2020 · 0 comments · Fixed by #2817
Closed

UnusedPrivateClass: false negative with import directives #2816

t-kameyama opened this issue Jun 21, 2020 · 0 comments · Fixed by #2817

Comments

@t-kameyama
Copy link
Contributor

Steps to Reproduce

package com.example

import com.example.C.EFG.EFG1

class C {
    fun test() {
        println(EFG1)
    }

    private enum class E { // false negative
        E1
    }

    private enum class EFG {
        EFG1
    }
}

Related: #2812 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants