Akuli / jou

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

Warning if a specific assignment of variable is not used #445

Open Akuli opened 9 months ago

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

def main() -> int:
    foo = 123
    foo = 456
    printf("%d\n", foo)
    return 0

Expected result: compiler warning on line foo = 123 Actual result: no warning

This would be useful for complicated loops.