girving / duck

a functional language built around overloading
http://groups.google.com/group/duck-lang
Other
10 stars 2 forks source link

Detect and complain about duplicate toplevel definitions #17

Closed girving closed 15 years ago

girving commented 15 years ago

This should not be allowed:

x = 1
x = 2
girving commented 15 years ago

Detect and complain about duplicate toplevel definitions

This required adding location information to variables in a bunch of different places.

Closed by e7deb09d41adbfe12cd1484b25b69593041e4729.

dylex commented 15 years ago

Still needs to be done for type definitions, including builtins. This should result in two errors:

data Int of Int
data Int of Int
dylex commented 15 years ago

Apparently you can't reopen issues? What's up with that?

girving commented 15 years ago

In the Actions menu, there was a "Close" option. I tried that, and the next time I looked there was an "Open" option. I tried that, and it reopened. We should probably file a bug about that behavior if we see it again.

dylex commented 15 years ago

Hrm. Well, now that we've sorted that out, 3485e5717efe980213e00e9261a784a26ca00024 fixed this.