FILE: test.kt
    public final fun foo(javaEnum: R|JavaEnum|): R|kotlin/Int| {
        ^foo when (lval <when-subject>: R|JavaEnum| = R|<local>/javaEnum|) {
            ==($subj$, <Unresolved name: first>#()) ->  {
                Int(1)
            }
            ==($subj$, Q|JavaEnum|.R|/JavaEnum.second*s|) ->  {
                Int(2)
            }
        }

    }
