[ 
https://issues.apache.org/jira/browse/ETCH-27?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

scott comer updated ETCH-27:
----------------------------

    Fix Version/s: 1.0.2

> mixins cause trouble when two or more mixed in files define a type with the 
> same name.
> --------------------------------------------------------------------------------------
>
>                 Key: ETCH-27
>                 URL: https://issues.apache.org/jira/browse/ETCH-27
>             Project: Etch
>          Issue Type: Bug
>          Components: compiler, csharp-binding, java-binding
>    Affects Versions: 1.0.1
>            Reporter: scott comer
>            Assignee: scott comer
>             Fix For: 1.0.2
>
>         Attachments: patch.txt
>
>
> three etch files, Foo.etch, Bar.etch, Baz.etch.
> Foo mixes in Bar and Baz.
> Bar and Baz each define a struct Entry ( int x ).
> Bar defines a message void barGet( Entry e )
> Baz defines a message void bazGet( Entry e )
> when you compile Foo the compiler fails because it conducts it search for 
> type Entry from the top down instead of the bottom up. a top down search 
> finds two definitions for Entry. the reference is ambigous and therefore not 
> allowed.
> a bottom up search guarantees that barGet binds to Bar's Entry and bazGet 
> binds to Baz's Entry.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to