hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit fe79d556a7dfe92b6481c866e16886ef71237d68
parent d0e98a01052e8b3572b88ed467b484d5a0e94e21
Author: Eyal Sawady <ecs@d2evs.net>
Date:   Mon, 25 Apr 2022 17:48:34 +0000

cmd/haretype: fix compilation

Signed-off-by: Eyal Sawady <ecs@d2evs.net>

Diffstat:
Mcmd/haretype/main.ha | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/cmd/haretype/main.ha b/cmd/haretype/main.ha @@ -86,8 +86,10 @@ export fn main() void = { fmt::fatal("I/O error: {}", io::strerror(err)); case let err: parse::error => fmt::fatal("{}", parse::strerror(err)); - case (types::deferred | types::error) => + case let err: types::error => fmt::fatal("{}", types::strerror(err)); + case types::deferred => + fmt::fatal("Invalid type"); }; }; };