﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4780	Issue with Complex constructor in NF	Francesco Casella	Mahder Alemseged Gebremedhin	"After [https://github.com/OpenModelica/OMCompiler/commit/f570c07f3 f570c07f3], Complex numbers should be supported in the NF. However, the test cases in the [https://libraries.openmodelica.org/branches/newInst/ScalableTestSuite/ScalableTestSuite.html ScalableTestSuite] e.g., [https://libraries.openmodelica.org/branches/newInst/ScalableTestSuite/files/ScalableTestSuite_ScalableTestSuite.Electrical.DistributionSystemAC.ScaledExperiments.DistributionSystemLinear_N_10_M_10.err DistributionSystemLinear_N_10_M_10], still fail with this error:
{{{
[Complex 3.2.2.mo:163:5-163:48:writable]
Error: Ambiguous matching functions found for
Complex(/*Real*/ c1.re + c2.re, /*Real*/ c1.im + c2.im).
Candidates are:
  Complex(Real re, Real im) => Complex
  Complex(Real re, Real im = 0.0) => Complex
}}}

Line 163 of Complex.mo reads:
{{{
c3 := Complex(c1.re + c2.re, c1.im + c2.im)
}}}

I'm not sure why the two candidates for the constructor should be in conflict, since in this case there is obviously no need for a default value of the {{{im}}} part, but anyway I guess this bug should be fixed easily. If so, can you do it right away?"	defect	closed	critical	2.0.0	New Instantiation		fixed		
