Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
frankhart2018 opened this issue Dec 29, 2020 · 2 comments
Labels
bug Something isn't working easy Easy problem

Comments

@frankhart2018
Copy link
Member

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 frankhart2018 added bug Something isn't working easy Easy problem KWoC'20 These issues are being listed as part of KWoC'20 SWoC 2021 labels Dec 29, 2020
@pawankm21
Copy link

@frankhart2018 , I would like to work on this issue

@frankhart2018
Copy link
Member Author

Sure assigning this to you @pawankm21.

@frankhart2018 frankhart2018 removed the KWoC'20 These issues are being listed as part of KWoC'20 label Jan 6, 2021
@pawankm21 pawankm21 removed their assignment Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working easy Easy problem
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants