apoch / epoch-language

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

Duplicate structure member names should not cause exceptions #118

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This code raises an exception in Structure::AddMember:

structure :
(
    integer(foo),
    string(foo)
)

This should instead report a semantic error to the user.

Also beware of this similar but different scenario:

structure :
(
    integer(foo)
    foo : (integer)->(integer)
)

Original issue reported on code.google.com by don.ap...@gmail.com on 15 Feb 2012 at 7:43

GoogleCodeExporter commented 9 years ago
Assigned to Release 12.

Original comment by don.ap...@gmail.com on 2 Apr 2012 at 4:15

GoogleCodeExporter commented 9 years ago
Both cases fixed.

Original comment by don.ap...@gmail.com on 13 Apr 2012 at 5:45