Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib
Mikhail Glukhikh 63ce4ba6b0 K2: add test for KT-56520, case (7), qualifier receivers (4.1)
This commit covers enum entry vs companion member case,
when one companion object is 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 the only candidate with companion.
After that it tries to resolve Some as a qualifier,
but we have no scope with a single qualifier, so no influence here.
Finally during foo resolve it should choose between enum entry and
companion member, and enum entry wins due to KT-37591.
2023-12-04 21:50:45 +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