kitlang / kit

Kit: a magical, high performance programming language, designed for game development.
https://www.kitlang.org
Other
1.02k stars 29 forks source link

Macros called from functions aren't always found #137

Closed bendmorris closed 5 years ago

bendmorris commented 5 years ago

If this is a code issue, provide a minimal code example:

macro boldify(s: CString) {
    printf('"** %s **"', s);
}

function main() {
    puts(boldify("HELLO!"));
    puts(boldify("THERE!"));
}
[2019-07-02 00:01:02.8826] ===> typing module content
kitc: Unexpected missing HashTable key: (["test"],"boldify")
CallStack (from HasCallStack):
  error, called at src/Kit/HashTable.hs:40:14 in kitlang-0.1.0-1asFTmIzBYCK4VFUEBcsTO:Kit.HashTable