Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect ambiguous name error #86

Open
mantkiew opened this issue May 4, 2016 · 0 comments
Open

Incorrect ambiguous name error #86

mantkiew opened this issue May 4, 2016 · 0 comments
Assignees
Milestone

Comments

@mantkiew
Copy link
Member

mantkiew commented May 4, 2016

abstract FunctionalArchitecture
abstract Deployment
   abstract fa -> FunctionalArchitecture

// then we write our generic power window deployment

abstract PowerWindowFAA : FunctionalArchitecture
abstract PowerWindowDpl : Deployment
   abstract fa : fa -> PowerWindowFAA

// Finally, we want to specialize it to driver power window.
// Here we have concrete architecture

System
    DriverPowerWindowFAA : PowerWindowFAA       
    DriverPowerWindowDpl : PowerWindowDpl
       // refine the type again to driver
       fa : fa -> DriverPowerWindowFAA  

Results in an incorrect error:

Compile error at line 9 column 18...
clafer "fa" cannot be defined because the name should be unique in the same namespace.
Available paths:
c0_fa
c1_fa

The clafer c1_fa should not be taken into consideration because a clafer cannot extend itself.

@mantkiew mantkiew added this to the 0.4.4 milestone May 4, 2016
@mantkiew mantkiew modified the milestones: 0.4.5, 0.4.4 Jun 24, 2016
mantkiew added a commit that referenced this issue Jun 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants