Skip to content

Conversation

@mrodz
Copy link
Owner

@mrodz mrodz commented Jan 20, 2024

  • Added is operator (works on Object, Module, Vec, and falls back onto ==)
    a = [1, 2, 3]
    b = [1, 2, 3]
    c = a
    
    print a == b # true
    print a is b # false
    print a == c # true
    print a is c # true
  • Fixed bug with Optional and ClassSelf not being handled properly by the typechecker in lists ([bug] incorrectly allowing variable to be callable #177)
  • Fixed runtime crash where a Class instance was passed to a standard call instruction because the compiler thought it was the class' constructor, and marked it as callable.
    class A {}
    a = A()
    a() # << HERE -- fixed

@mrodz mrodz linked an issue Jan 20, 2024 that may be closed by this pull request
5 tasks
@mrodz mrodz merged commit 9d35fc2 into master Jan 20, 2024
@mrodz mrodz deleted the 177-bug-incorrectly-allowing-variable-to-be-callable branch January 20, 2024 04:26
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 this pull request may close these issues.

[bug] incorrectly allowing variable to be callable

1 participant