Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib
Mikhail Glukhikh 602801dcfd K2: add test for KT-56520, case (7), qualifier receivers (2.2)
This commit covers object vs companion member vs static member case
but now we have two different companions (first is empty) in the scope.
K1 reports UNRESOLVED_REFERENCE here, probably due to ambiguity.
About K2, while resolving Some.foo it first tries to resolve Some
as a "general" variable access, and gets some/Some & some2/Some
because both of them have a companion. This means ambiguity.
After it tries to resolve Some as a qualifier, but we have no scope
with a single qualifier, so finally we prefer to report ambiguity
from variable access resolve.
2023-12-04 21:50:44 +00:00
..
2022-02-25 11:46:27 +00:00
2023-12-01 12:05:12 +00:00
2023-12-01 12:05:12 +00:00
2021-05-28 15:36:24 +03:00
2022-09-19 19:12:20 +00:00
2022-02-17 15:04:36 +00:00