K2: render additionally *s for static references
This commit allows to distinguish static VS non-static things inside FIR_DUMP, e.g. static synthetic Enum.entries with enum entry Enum.entries
This commit is contained in:
committed by
Space Team
parent
70899d492d
commit
978d52d05b
Vendored
+3
-3
@@ -18,8 +18,8 @@ FILE: conflictingPropertyEntriesAndReferenceOn.fir.kt
|
||||
|
||||
}
|
||||
public final fun test(): R|kotlin/Unit| {
|
||||
Q|E|::R|/E.entries|
|
||||
lval ref: R|kotlin/reflect/KProperty0<kotlin/enums/EnumEntries<E>>| = Q|E|::R|/E.entries|
|
||||
Q|E|::R|/E.entries*s|
|
||||
lval ref: R|kotlin/reflect/KProperty0<kotlin/enums/EnumEntries<E>>| = Q|E|::R|/E.entries*s|
|
||||
lval refType: R|(E) -> kotlin/Int| = Q|E|::R|/E.entries|
|
||||
lval refTypeWithAnyExpectedType: R|kotlin/Any| = Q|E|::R|/E.entries|
|
||||
lval refTypeWithAnyExpectedType: R|kotlin/Any| = Q|E|::R|/E.entries*s|
|
||||
}
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ FILE: entriesPropertyAsExtensionClashOn.fir.kt
|
||||
^ Int(0)
|
||||
}
|
||||
public final fun test(): R|kotlin/Unit| {
|
||||
Q|pckg/A|.R|pckg/A.entries|
|
||||
Q|pckg/A|.R|pckg/A.entries*s|
|
||||
Q|pckg/A.Companion|.R|pckg/entries|
|
||||
R|kotlin/with|<R|pckg/A.Companion|, R|kotlin/Int|>(Q|pckg/A|, <L> = with@fun R|pckg/A.Companion|.<anonymous>(): R|kotlin/Int| <inline=Inline, kind=EXACTLY_ONCE> {
|
||||
this@R|special/anonymous|.R|pckg/entries|
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ FILE: entriesPropertyImportedClashOn.fir.kt
|
||||
|
||||
}
|
||||
public final fun test(): R|kotlin/Unit| {
|
||||
Q|foo/A|.R|foo/A.entries|
|
||||
Q|foo/A|.R|foo/A.entries*s|
|
||||
R|kotlin/with|<R|foo/A.Companion|, R|kotlin/Int|>(Q|foo/A|, <L> = with@fun R|foo/A.Companion|.<anonymous>(): R|kotlin/Int| <inline=Inline, kind=EXACTLY_ONCE> {
|
||||
^ this@R|special/anonymous|.R|foo/A.Companion.entries|
|
||||
}
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ FILE: entriesPropertyInCompanionClashOn.fir.kt
|
||||
|
||||
}
|
||||
public final fun test(): R|kotlin/Unit| {
|
||||
Q|A|.R|/A.entries|
|
||||
Q|A|.R|/A.entries*s|
|
||||
Q|A.Companion|.R|/A.Companion.entries|
|
||||
R|kotlin/with<Inapplicable(INAPPLICABLE): kotlin/with>#|<R|A.Companion|, <ERROR TYPE REF: Cannot infer argument for type parameter R>>(Q|A|, <L> = with@fun R|A.Companion|.<anonymous>(): <ERROR TYPE REF: Cannot infer argument for type parameter R> <inline=Inline, kind=EXACTLY_ONCE> {
|
||||
this@R|special/anonymous|.R|/A.Companion.entries|
|
||||
|
||||
Vendored
+1
-1
@@ -25,7 +25,7 @@ FILE: entriesPropertyWithJvmStaticClashOn.fir.kt
|
||||
|
||||
}
|
||||
public final fun test(): R|kotlin/Unit| {
|
||||
Q|A|.R|/A.entries|
|
||||
Q|A|.R|/A.entries*s|
|
||||
R|kotlin/with|<R|A.Companion|, R|kotlin/Int|>(Q|A|, <L> = with@fun R|A.Companion|.<anonymous>(): R|kotlin/Int| <inline=Inline, kind=EXACTLY_ONCE> {
|
||||
^ this@R|special/anonymous|.R|/A.Companion.entries|
|
||||
}
|
||||
|
||||
+1
-1
@@ -28,6 +28,6 @@ FILE: genericEntriesPropertyClashOn.fir.kt
|
||||
^ Int(0)
|
||||
}
|
||||
public final fun test(): R|kotlin/Unit| {
|
||||
Q|pckg/A|.R|pckg/A.entries|
|
||||
Q|pckg/A|.R|pckg/A.entries*s|
|
||||
Q|pckg/A.Companion|.R|pckg/entries|<R|pckg/A.Companion|>
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
FILE: test.kt
|
||||
public final fun test(): R|kotlin/Unit| {
|
||||
Q|JEnumEntry|.R|/JEnumEntry.entries|
|
||||
Q|JEnumStaticField|.R|/JEnumStaticField.entries|
|
||||
Q|JEnumField|::R|/JEnumField.entries|
|
||||
Q|JEnumStaticField|.R|/JEnumStaticField.entries*s|
|
||||
Q|JEnumField|::R|/JEnumField.entries*s|
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -9,7 +9,7 @@ FILE: nameShadowingOfExternallyDefinedEntriesOn.fir.kt
|
||||
}
|
||||
|
||||
public final fun foo(): R|kotlin/Unit| {
|
||||
R|pckg/E.entries|.<Unresolved name: length>#
|
||||
R|pckg/E.entries*s|.<Unresolved name: length>#
|
||||
Q|pckg|.R|pckg/entries|.R|kotlin/String.length|
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ FILE: nameShadowingOfExternallyDefinedEntriesOn.fir.kt
|
||||
}
|
||||
|
||||
public final fun foo(): R|kotlin/Unit| {
|
||||
R|pckg/A.E.entries|.<Unresolved name: length>#
|
||||
R|pckg/A.E.entries*s|.<Unresolved name: length>#
|
||||
Q|pckg|.R|pckg/entries|.R|kotlin/String.length|
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user