Serialize default argument values presence for actual declarations correctly
When default argument value was present in the expected declaration, we did not correctly serialize that fact to the metadata for the actual declaration (`declaresDefaultValue` was used). Therefore, it was impossible to use that actual declaration without passing all parameter values in another module, where it was seen as a deserialized descriptor #KT-21913
This commit is contained in:
+1
-1
@@ -74,7 +74,7 @@ fun ValueParameterDescriptor.hasDefaultValue(): Boolean {
|
||||
)
|
||||
}
|
||||
|
||||
private val ValueParameterDescriptor.isActualParameterWithExpectedDefault: Boolean
|
||||
val ValueParameterDescriptor.isActualParameterWithExpectedDefault: Boolean
|
||||
get() {
|
||||
val function = containingDeclaration
|
||||
if (function is FunctionDescriptor && function.isActual) {
|
||||
|
||||
Reference in New Issue
Block a user