// !CHECK_TYPE // SKIP_TXT // FILE: test.kt package test enum class E { Entry; companion object { val Entry = "" val NotEntry = "" } } // FILE: main.kt import test.E.Entry import test.E.Companion as W import test.E as U import test.E fun foo() { E.Entry checkType { _() } E.Entry checkType { _() } E.Companion.Entry checkType { _() } E.NotEntry checkType { _() } Entry checkType { _() } W.Entry checkType { _() } } // FILE: Aliased.kt import test.E as U fun bar() { U.Entry checkType { _<E>() } U.Entry checkType { _() } U.Companion.Entry checkType { _() } U.NotEntry checkType { _() } }