FIR: Fix ambiguity between current Companion and one from supertypes
Companion as qualifier should be found at static scope not a member one
This commit is contained in:
Vendored
+1
-1
@@ -31,7 +31,7 @@ enum class Fruit(personal: Int) {
|
||||
|
||||
// Another example from KT-11769
|
||||
enum class EnumCompanion1(val x: Int) {
|
||||
INSTANCE(<!AMBIGUITY!>Companion<!>.<!UNRESOLVED_REFERENCE!>foo<!>()),
|
||||
INSTANCE(Companion.foo()),
|
||||
ANOTHER(foo());
|
||||
|
||||
companion object {
|
||||
|
||||
Reference in New Issue
Block a user