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

-vvv is broken and crashes the compiler #151

Open PtrMan opened 3 years ago

PtrMan commented 3 years ago

I tried to see what the compiler is doing and got a crash trying to compile a simple hello world with kitc -vvv test0.kit

function main() {
    printf("%s\n", "Hello from Kit!");
}

Result:

CallStack (from HasCallStack):
  error, called at libraries/base/GHC/Err.hs:79:14 in base:GHC.Err
  undefined, called at src/Kit/Ast/Definitions/EnumVariant.hs:38:24 in kitlang-0.1.0-7uWjdU81ybAH34QXJWKK6w:Kit.Ast.Definitions.EnumVariant