not having a bottom type is pretty frustrating if (this.index(key) is not int id...

@0x57e11a@void.lgbt

not having a bottom type is pretty frustrating

if (this.index(key) is not int idx) return default; works (idx is defined after this point)
but if (this.index(key) is not int idx) Errors.invalid_next_key(); doesn’t (idx is not defined after this point because the compiler doesn’t know that invalid_next_key never returns (despite being marked DoesNotReturn))

RE: https://void.lgbt/objects/5488a299-e581-4bc7-8c08-ba0c8233bc7e