Difference in actual and formal arguments

Hi
I have written a function whose formal argument type is real. I am calling the function by passing a real actual argument.

But I see the below error. Can you please help me solve this?

Error-[ICTTFC] Incompatible complex type usage
Incompatible complex type usage in task or function call.
The following expression is incompatible with the formal parameter of the
function. The type of the actual is ‘real$[0:8]’, while the type of the
formal is ‘real’.

Thanks

In reply to Deepthip:

The error message looks like you are passing an array of reals. Can you show any code?

In reply to dave_59:
Thank you dave for the quick response.
Sorry I cannot post any code here since it is company confidential.

Yes I am passing array of reals. But why am I seeing this error?

Also if my formal argument is real , and actual argument is of type int or real, vcs should automatically do type conversion right?

In reply to Deepthip:
Can you please explain to me the rules of automatic type conversion?
Like, if the actual argument is real and formal argument is type int or vice versa? how are these situations handled?

In reply to Deepthip:

In reply to dave_59:
Thank you dave for the quick response.
Sorry I cannot post any code here since it is company confidential.
Yes I am passing array of reals. But why am I seeing this error?
Also if my formal argument is real array , and actual argument is of type int or real, vcs should automatically do type conversion right?

If I try to pass an array I get this error
Error-[XMRE] Cross-module reference resolution error
Error found while trying to resolve cross-module reference.

In reply to Deepthip:

No one can help you without seeing any code. You should be able to write a small example that demonstrates what you are trying to do. What do you expect to happen if you pass an actual array of reals to a function that only takes a single real number as a formal argument.

In reply to dave_59:

Hi dave

Yes I got the mistake, formal argument is real and actual is array of real arguments.
Hence I am getting incompatible type usage

Thanks
Deepthi