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

Limitation with classes order? #56

Closed
caterinaurban opened this issue Jul 27, 2017 · 4 comments
Closed

Limitation with classes order? #56

caterinaurban opened this issue Jul 27, 2017 · 4 comments
Labels

Comments

@caterinaurban
Copy link
Owner

It seems that the inference cannot handle such program:

class Parser:
    def _add_(self, other):
        return Concat(self, other)

class Concat(Parser):
    def _init_(self, left, right):
        self.left = left
        self.right = right

Can we maybe preprocess the classes in some way to handle this?

@mostafa-abdullah
Copy link
Contributor

Check #43. It is the same issue here.

@caterinaurban
Copy link
Owner Author

caterinaurban commented Jul 27, 2017

Except that this code is fine but the inference crashes 😆

@caterinaurban
Copy link
Owner Author

This also does not work:

class LivenessLattice:
    def __init__(self, liveness):
        self.element = liveness

    def bottom(self):
        self.replace(LivenessLattice(0))
        return self

@caterinaurban
Copy link
Owner Author

This issue was moved to caterinaurban/Typpete#4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants