Operating System & Odin Version: dev-2023-07:1b365712
Reproduction:
package bug
main :: proc() {
x: Maybe(string)
// Both of these cause the same crash.
if x != "" {}
if x == "" {}
}
Output when run:
> odin run bug.odin -file
bug.main
lb_emit_conv: src -> dst
Not Identical Maybe($T=string) != string
Not Identical union {string} != string
Not Identical 28073bf7f40 != 7ff6083ecf98
Not Identical 28073bf7fc0 != 7ff6083ecf98
odin\src\llvm_backend_expr.cpp(2234): Panic: Invalid type conversion: 'Maybe($T=string)' to 'string' for procedure 'bug.main'
dev-2023-07:1b365712
Reproduction:
Output when run: