Files
kotlin-fork/compiler/testData/codegen/box/regressions/kt51171.kt
T
Mads Ager c8cade5bf3 [FIR] Ensure qualifier resolution takes place for type aliases.
When resolving a name that is used as a receiver and all
candidates are classifier symbols, we need to perform
qualifier resolution. The code used to only do that for
regular classes, and would not perform qualifier resolution if
there was a type alias candidate.

^KT-51171 Fixed
2022-02-10 16:27:32 +03:00

14 lines
164 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// FILE: Error.java
public class Error {
static String foo() {
return "OK";
}
}
// FILE: test.kt
fun box() = Error.foo()