Skip to content

assertion failure in comptime block #547

Closed
@PavelVozenilek

Description

@PavelVozenilek

This little program crashes the compiler:

const io = @import("std").io;

pub fn main() -> %void {
  const  x  = undefined; /// <<<=== probably this line
  %%io.stdout.printf("{}\n", @typeName(@typeOf(x)));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions