You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
Error Message
[Line 5] Error: Too many unique types in initializers
The text was updated successfully, but these errors were encountered: