odin-lang / Odin

Odin Programming Language
https://odin-lang.org
BSD 3-Clause "New" or "Revised" License
6.99k stars 622 forks source link

Performing && or || on boolean arrays causes compiler to panic #3955

Open Dopsh opened 4 months ago

Dopsh commented 4 months ago

Context

Steps to Reproduce

Code to cause the panic:

package main

main :: proc() {
    a, b: [10] bool
    c := a && b
}
gingerBill commented 4 months ago

This behaviour should NOT be allowed in the first place. Odin does not support boolean array programming.