-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Compiler ICE caused by invalid type unification of arrays #7603
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingcompilerGeneral compiler. Should eventually become more specific as the issue is triagedGeneral compiler. Should eventually become more specific as the issue is triagedcompiler: frontendEverything to do with type checking, control flow analysis, and everything between parsing and IRgenEverything to do with type checking, control flow analysis, and everything between parsing and IRgencompiler: irIRgen and sway-ir including optimization passesIRgen and sway-ir including optimization passes
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcompilerGeneral compiler. Should eventually become more specific as the issue is triagedGeneral compiler. Should eventually become more specific as the issue is triagedcompiler: frontendEverything to do with type checking, control flow analysis, and everything between parsing and IRgenEverything to do with type checking, control flow analysis, and everything between parsing and IRgencompiler: irIRgen and sway-ir including optimization passesIRgen and sway-ir including optimization passes
#7601 introduces a
should_pass/language/const_generics_array_in_reassignmentstests with the following code snippet:where
default_selfis defined as:Calling
assert_eqwithout explicitly specifying the type causes: