Update type-ascription-by-inhabitance.md

This commit is contained in:
Alexander McCord 2024-03-06 13:32:38 -08:00 committed by GitHub
parent a8296aba1e
commit ae2628783e
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -33,6 +33,7 @@ local function f(e: number | string)
-- Not OK
noop(e :: boolean) -- (number | string) & boolean ~ never
noop(e :: never) -- (number | string) & never ~ never
-- Special cases
noop(error("") :: string) -- OK