Skip to content

new compiler: panic: arrays out of sync #8033

@Anton-4

Description

@Anton-4
module []

bool_list = [True, False]
❯ ./zig-out/bin/roc check temp2.roc 
thread 6107 panic: Arrays out of sync:
 type_nodes=83
  region_nodes=80
 
/home/username/gitrepos/roc/src/check/check_types.zig:121:28: 0x11a8458 in processSourceInternal (roc)
            std.debug.panic(
                           ^
/home/username/gitrepos/roc/src/coordinate_simple.zig:112:63: 0x11c0ae7 in processFile (roc)
                var process_result = try processSourceInternal(gpa, returned.source, filepath, config);
                                                              ^
/home/username/gitrepos/roc/src/main.zig:224:55: 0x11c608b in rocCheck (roc)
    var process_result = coordinate_simple.processFile(gpa, Filesystem.default(), args.path, if (cache_manager) |*cm| cm else null, args.time) catch |err| handleProcessFileError(err, stderr, args.path);
                                                      ^
/home/username/gitrepos/roc/src/main.zig:65:40: 0x11d3874 in mainArgs (roc)
        .check => |check_args| rocCheck(gpa, check_args),
                                       ^
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions