Akuli / jou

Yet another programming language
MIT License
11 stars 4 forks source link

compiler assert error #399

Closed Akuli closed 9 months ago

Akuli commented 9 months ago
import "stdlib/io.jou"

class Game:
    def get_power(self) -> int:
        return 123

def parse_game() -> Game:
    return Game{}

def main() -> int:
    result = parse_game().get_power()
    printf("%d\n", result)
    return 0

Expected result: no errors or warnings print 123, or an error explaining what is wrong

Actual result

~/jou/jou bug.jou
jou: src/build_cfg.c:394: const LocalVariable *build_address_of_expression(struct State *, const AstExpression *): Assertion `0' failed.
Aborted