Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Jul 20, 2023
1 parent 56b28a7 commit 343e4bd
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/parser/exceptions/test_invalid_reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,24 @@ def foo():
def foo():
int128 = 5
""",
"""
a: public(constant(uint256)) = 1
@external
def foo():
b: uint256 = self.a
""",
"""
a: public(immutable(uint256))
@external
def __init__():
a = 123
@external
def foo():
b: uint256 = self.a
""",
]


Expand Down

0 comments on commit 343e4bd

Please sign in to comment.