Skip to content

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

@frankhart2018

Description

@frankhart2018

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingeasyEasy problem

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions