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

Support parent of nested abstract clafers #30

Closed
mantkiew opened this issue Sep 5, 2016 · 1 comment
Closed

Support parent of nested abstract clafers #30

mantkiew opened this issue Sep 5, 2016 · 1 comment
Assignees
Milestone

Comments

@mantkiew
Copy link
Member

mantkiew commented Sep 5, 2016

The following model causes an error org.clafer.ast.analysis.TypeException: Cannot join abstract c0_Port . parent:

abstract Component
    abstract Port
    allPorts -> Port *
    // query for all nested ports explicitly
    [ all p : Component.Port | p.parent=this <=> p in this.allPorts ]   // p.parent causes the error


WinController : Component
    cmd : Port
    powerOut : Port

where, in fact, Port has a parent because it is nested under Component.

@JLiangWaterloo
Copy link
Member

Fixed.

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