sim-c icon indicating copy to clipboard operation
sim-c copied to clipboard

[BUG REPORT] Error when function calls and constants are passed in array initializer list

Open frankhart2018 opened this issue 3 years ago • 2 comments

Describe the bug When an array initializer list has both function call and constant value of the same type as the return type of function the function throws an error - "Too many unique types in initializers"

sim-C Code

fun sum(a, b)
    return a + b

MAIN
	var variable[] = {sum(1, 2), 2}
END_MAIN

Error Message [Line 5] Error: Too many unique types in initializers

frankhart2018 avatar Dec 29 '20 19:12 frankhart2018

@frankhart2018 , I would like to work on this issue

pawankm21 avatar Jan 01 '21 06:01 pawankm21

Sure assigning this to you @pawankm21.

frankhart2018 avatar Jan 01 '21 07:01 frankhart2018