KT-41859 Place classes after typealiases in DeserializedMemberScope
This way, the order in stubs and in deserialized text would be the same On the next stub version bump, this fix should be reworked: the order in the `DeserializedMemberScope` should be restored, and the order in the stubs should be fixed to match the order in `MemberComparator` ^KT-41859 Fixed
This commit is contained in:
@@ -15,6 +15,8 @@ annotation class Ann
|
||||
|
||||
class TypeAliases {
|
||||
|
||||
class OrderB
|
||||
|
||||
@Suppress("TOPLEVEL_TYPEALIASES_ONLY")
|
||||
typealias B = (A) -> Unit
|
||||
|
||||
@@ -28,6 +30,8 @@ class TypeAliases {
|
||||
|
||||
fun order(path: String) {}
|
||||
fun order(body: Z) {}
|
||||
|
||||
class OrderA
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -139,3 +139,15 @@ PsiJetFileStubImpl[package=test]
|
||||
TYPE_REFERENCE
|
||||
USER_TYPE
|
||||
REFERENCE_EXPRESSION[referencedName=F]
|
||||
CLASS[fqName=test.TypeAliases.OrderA, isEnumEntry=false, isInterface=false, isLocal=false, isTopLevel=false, name=OrderA, superNames=[]]
|
||||
MODIFIER_LIST[public final]
|
||||
PRIMARY_CONSTRUCTOR
|
||||
MODIFIER_LIST[public]
|
||||
VALUE_PARAMETER_LIST
|
||||
CLASS_BODY
|
||||
CLASS[fqName=test.TypeAliases.OrderB, isEnumEntry=false, isInterface=false, isLocal=false, isTopLevel=false, name=OrderB, superNames=[]]
|
||||
MODIFIER_LIST[public final]
|
||||
PRIMARY_CONSTRUCTOR
|
||||
MODIFIER_LIST[public]
|
||||
VALUE_PARAMETER_LIST
|
||||
CLASS_BODY
|
||||
|
||||
Reference in New Issue
Block a user