mirror of
https://github.com/github/semantic.git
synced 2024-12-24 07:25:44 +03:00
6 lines
226 B
Python
6 lines
226 B
Python
# CHECK-TREE: { Foo <- { identity <- \self -> \x -> x; __semantic_prelude.type "Foo" __semantic_prelude.object #record { identity: identity } }; #record { Foo: Foo } }
|
|
|
|
class Foo():
|
|
def identity(self, x):
|
|
return x
|