1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00
semantic/semantic-python/test/fixtures/3-02-defining-instance-method.py

6 lines
226 B
Python
Raw Normal View History

2019-10-15 20:10:18 +03:00
# CHECK-TREE: { Foo <- { identity <- \self -> \x -> x; __semantic_prelude.type "Foo" __semantic_prelude.object #record { identity: identity } }; #record { Foo: Foo } }
2019-10-11 22:02:52 +03:00
class Foo():
def identity(self, x):
return x