monte-language / typhon

A virtual machine for Monte.
Other
67 stars 10 forks source link

Scope analysis does not close methods properly #185

Closed washort closed 7 years ago

washort commented 7 years ago

Parameters from earlier methods are treated as defined in later methods by the compiler.

object foo:
    to doA(a):
        return a + 1
    to doB(b):
        return b + a

does not produce a compiler error but is correctly rejected by the VM.