Skip to content

Segfault using ternary with no assignment #1468

@Dodzey

Description

@Dodzey

Repro:

fn void foo() {}
fn void bar() {}

fn void main()
{
    bool b = true;
    true ? foo() : bar(); // ok
    b ? foo() : bar(); // segfault
}

Metadata

Metadata

Assignees

Labels

Fixed needs testingNeeds verification / testing that it now works

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions