mirror of
https://github.com/erg-lang/erg.git
synced 2025-07-08 21:55:26 +00:00
13 lines
176 B
Python
13 lines
176 B
Python
x = 0
|
|
|
|
|
|
def f(x: int) -> int:
|
|
return x + 1
|
|
|
|
|
|
class C:
|
|
def __init__(self, x: int) -> None:
|
|
self.x = x
|
|
|
|
def f(self, y: int) -> int:
|
|
return self.x + y
|