inkle / inkle/ink

ink incorrectly allows redefinitions of CONSTs

Open
#170 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
4.9k
Forks
540
PR merge metrics
No merged PRs in 30d

Description

(Originally posted by @joningold on our internal Asana.)

The following is valid and shouldn't be:

```
CONST PI = 3.1
CONST PI = 3.14
{PI}
```

We quite like the ability to re-define `CONST`s to the **same** value (for importing the same file in multiple places), but perhaps this is a hack to get around the fact that `INCLUDE` statements are like C-style copy/paste, and could perhaps be revised to automatically only include once.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.