Rename ClassKind.isObject -> isSingleton
"isObject" gives a false impression that this is a check if the kind is OBJECT
This commit is contained in:
@@ -292,7 +292,7 @@ public class CodegenUtil {
|
||||
ReceiverParameterDescriptor expectedThisObject = descriptor.getExpectedThisObject();
|
||||
if (expectedThisObject != null) {
|
||||
ClassDescriptor expectedThisClass = (ClassDescriptor) expectedThisObject.getContainingDeclaration();
|
||||
if (!expectedThisClass.getKind().isObject()) {
|
||||
if (!expectedThisClass.getKind().isSingleton()) {
|
||||
return expectedThisClass;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user