Fix implementation doesn't match name of property
Currently, property `hasSourceAnnotationsErased` returns the opposite to what is stated in name. Invert it both in implementation and on call site. ^KT-58551
This commit is contained in:
committed by
Space Team
parent
a1a1049aa8
commit
05cead2ab5
+3
-3
@@ -369,8 +369,8 @@ class ClassicExpectActualMatchingContext(val platformModule: ModuleDescriptor) :
|
||||
|
||||
override val DeclarationSymbolMarker.hasSourceAnnotationsErased: Boolean
|
||||
get() {
|
||||
return DescriptorUtils.getContainingSourceFile(asDescriptor()) != SourceFile.NO_SOURCE_FILE ||
|
||||
this is K1SyntheticClassifierSymbolMarker ||
|
||||
this is CallableMemberDescriptor && kind == CallableMemberDescriptor.Kind.SYNTHESIZED
|
||||
return DescriptorUtils.getContainingSourceFile(asDescriptor()) == SourceFile.NO_SOURCE_FILE &&
|
||||
this !is K1SyntheticClassifierSymbolMarker &&
|
||||
!(this is CallableMemberDescriptor && kind == CallableMemberDescriptor.Kind.SYNTHESIZED)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user