Skip to content

nwn_script_comp: Mismatched data type between function declaration and implementation is not properly detected #114

@LaputianBird

Description

@LaputianBird

While the case of

void some_function();

int some_function()
{
    return 10;
}

void main()
{
    PrintInteger(
        some_function()
    );
}

is properly detected with a mismatched parameters error message, the case of

void some_function();

int some_function()
{
    return 10;
}

void main()
{
    some_function();
}

is apparently compiled without errors with the stand-alone cli compiler, but fails with a STACK UNDERFLOW error from the in-game script chunk console

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions