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

(3rd type) An error in the chain of inheritance #36

Closed
APotyomkin opened this issue Mar 6, 2022 · 1 comment · Fixed by #51
Closed

(3rd type) An error in the chain of inheritance #36

APotyomkin opened this issue Mar 6, 2022 · 1 comment · Fixed by #51
Assignees

Comments

@APotyomkin
Copy link

Problematic code:

[] > test
  [] > parent
    [self x] > f
      x.sub 5 > t
      seq > @
        assert (0.less t)
        x
    [self z] > h
      z > @

  [] > child
    test.parent > @
    [self y] > g
      self.f self y > @

  [] > grandchild
    test.child > @
    [self y] > f
      y > @
    [self z] > h
      self.g self z > @

Expected result:

RESULT BY AnOdin:
        [Unjustified Assumption] Method g is not referentially transparent

Actual result:

RESULT BY AnOdin:
        Odin is not able to analyze the code, due to:
        Symbol value-of-before-g not declared

Thoughts:
The error message is the same as in #35. But here absent long calls chain. So the problem is probably somewhere else.

@fizruk
Copy link
Member

fizruk commented Mar 21, 2022

@Leosimetti this should be straightforward, but for now is low priority.

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

Successfully merging a pull request may close this issue.

3 participants