hare

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

commit 1245daa29f78a8d711abd294336896ca46a283ce
parent fa6bf9f8ce373f4b1b19d340e086d04168ee3c0d
Author: Eyal Sawady <ecs@d2evs.net>
Date:   Sat,  4 Sep 2021 07:32:47 +0000

cmd/haredoc: drop const reduction workaround

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

Diffstat:
Mcmd/haredoc/main.ha | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/cmd/haredoc/main.ha b/cmd/haredoc/main.ha @@ -81,8 +81,7 @@ export fn main() void = { }; let decl = ""; - // TODO: Const type reduction - let dirname: ast::ident = if (len(id) < 2) id else id[..len(id) - 1]; + let dirname = if (len(id) < 2) id else id[..len(id) - 1]; const version = match (module::lookup(&ctx, id)) { ver: module::version => ver, err: module::error => match (module::lookup(&ctx, dirname)) {