We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf13ac1 commit 4e44664Copy full SHA for 4e44664
tests/unit/semantics/analysis/test_cyclic_function_calls.py
@@ -54,6 +54,21 @@ def potato():
54
analyze_module(vyper_module, dummy_input_bundle)
55
56
57
+def test_recursive_function_call(dummy_input_bundle):
58
+ code = """
59
+@external
60
+def foo():
61
+ self.bar()
62
+
63
+@internal
64
+def bar():
65
66
+ """
67
+ vyper_module = parse_to_ast(code)
68
+ with pytest.raises(CallViolation):
69
+ analyze_module(vyper_module, dummy_input_bundle)
70
71
72
def test_global_ann_assign_callable_no_crash(dummy_input_bundle):
73
code = """
74
balanceOf: public(HashMap[address, uint256])
0 commit comments