mirror of
https://github.com/github/semantic.git
synced 2024-12-27 17:05:33 +03:00
01b4a23b23
Code like the following kind is legal in Python: ```python def recursive(a): return recursive ``` This implies that function and class definitions need to use the Core `rec` construct so that their bodies have an appropriate entry in the scope.
4 lines
145 B
Python
4 lines
145 B
Python
# CHECK-TREE: { Foo <- rec Foo = __semantic_prelude.type "Foo" __semantic_prelude.object #record {}; #record { Foo: Foo }}
|
|
class Foo():
|
|
pass
|