apoch / epoch-language

Home of the Epoch Programming Language Project
Other
72 stars 3 forks source link

Variable names can shadow function names #150

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Variable names can overlap with function names which causes some truly weird 
errors:

entrypoint :
{
    integer foo = 41
    integer bar = foo + 1

    assert(bar == 42)    // Doh!
}

foo : integer n -> integer m = n + 1

Original issue reported on code.google.com by don.ap...@gmail.com on 16 Apr 2012 at 9:59

GoogleCodeExporter commented 9 years ago

Original comment by don.ap...@gmail.com on 16 Apr 2012 at 10:00

GoogleCodeExporter commented 9 years ago
Fixed and committed.

Original comment by don.ap...@gmail.com on 19 Apr 2012 at 4:32