~sircmpwn/hare-users

[BUG harec]: assertion failure in check.c

Zachary Yedidia <zyedidia@stanford.edu>
Details
Message ID
<BYAPR02MB49362D20A025AE228D4829F8B0739@BYAPR02MB4936.namprd02.prod.outlook.com>
DKIM signature
pass
Download raw message
I've come across a bug in harec related to using a variable and struct
with the same name:

    type foo = struct {
        x: i32,
    };

    fn bar(foo: foo) void = {
        let x = foo {
            x = 12,
        };
    };

$ harec test.ha
harec: src/check.c:2689: check_expr_struct: Assertion `obj->otype ==
O_TYPE' failed.

Sorry if this has already been reported.

Thanks,
Zach
Reply to thread Export thread (mbox)