diff --git a/compiler/frontend/src/org/jetbrains/kotlin/cfg/pseudocode/pseudocodeUtils.kt b/compiler/frontend/src/org/jetbrains/kotlin/cfg/pseudocode/pseudocodeUtils.kt index c32ab547fb3..13879214576 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/cfg/pseudocode/pseudocodeUtils.kt +++ b/compiler/frontend/src/org/jetbrains/kotlin/cfg/pseudocode/pseudocodeUtils.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2016 JetBrains s.r.o. + * Copyright 2010-2017 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,7 +22,6 @@ import org.jetbrains.kotlin.cfg.Label import org.jetbrains.kotlin.cfg.pseudocode.instructions.Instruction import org.jetbrains.kotlin.cfg.pseudocode.instructions.eval.* import org.jetbrains.kotlin.cfg.pseudocode.instructions.eval.MagicKind.* -import org.jetbrains.kotlin.cfg.pseudocode.instructions.jumps.AbstractJumpInstruction import org.jetbrains.kotlin.cfg.pseudocode.instructions.jumps.ConditionalJumpInstruction import org.jetbrains.kotlin.cfg.pseudocode.instructions.jumps.ReturnValueInstruction import org.jetbrains.kotlin.cfg.pseudocode.instructions.jumps.ThrowExceptionInstruction @@ -116,10 +115,7 @@ fun getExpectedTypePredicate( TracingStrategy.EMPTY, DataFlowInfoForArgumentsImpl(DataFlowInfo.EMPTY, call) ) - val status = ValueArgumentsToParametersMapper.mapValueArgumentsToParameters(call, - TracingStrategy.EMPTY, - candidateCall, - LinkedHashSet()) + val status = ValueArgumentsToParametersMapper.mapValueArgumentsToParameters(call, TracingStrategy.EMPTY, candidateCall) if (!status.isSuccess) continue val candidateArgumentMap = candidateCall.valueArguments diff --git a/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/CandidateResolver.kt b/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/CandidateResolver.kt index 88f3a56b4ed..dac5cbc3b05 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/CandidateResolver.kt +++ b/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/CandidateResolver.kt @@ -17,7 +17,6 @@ package org.jetbrains.kotlin.resolve.calls import com.google.common.collect.Lists -import com.google.common.collect.Sets import org.jetbrains.kotlin.builtins.ReflectionTypes import org.jetbrains.kotlin.descriptors.* import org.jetbrains.kotlin.descriptors.annotations.AnnotationDescriptor @@ -151,7 +150,7 @@ class CandidateResolver( private fun CallCandidateResolutionContext.mapArguments() = check { val argumentMappingStatus = ValueArgumentsToParametersMapper.mapValueArgumentsToParameters( - call, tracing, candidateCall, Sets.newLinkedHashSet()) + call, tracing, candidateCall) if (!argumentMappingStatus.isSuccess) { candidateCall.addStatus(ARGUMENTS_MAPPING_ERROR) } diff --git a/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/ValueArgumentsToParametersMapper.java b/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/ValueArgumentsToParametersMapper.java index ab9cd269501..41d7e5c988e 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/ValueArgumentsToParametersMapper.java +++ b/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/ValueArgumentsToParametersMapper.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2015 JetBrains s.r.o. + * Copyright 2010-2017 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,13 +70,11 @@ public class ValueArgumentsToParametersMapper { public static Status mapValueArgumentsToParameters( @NotNull Call call, @NotNull TracingStrategy tracing, - @NotNull MutableResolvedCall candidateCall, - @NotNull Set unmappedArguments + @NotNull MutableResolvedCall candidateCall ) { //return new ValueArgumentsToParametersMapper().process(call, tracing, candidateCall, unmappedArguments); Processor processor = new Processor(call, candidateCall, tracing); processor.process(); - unmappedArguments.addAll(processor.unmappedArguments); return processor.status; }