lcompilers / lpython

Python compiler
https://lpython.org/
Other
1.37k stars 156 forks source link

Implementing static methods in classes #2720

Closed tanay-man closed 4 weeks ago

tanay-man commented 4 weeks ago

Test code:

from lpython import i32

class Test:
    def fn() -> i32:
        inside_fn : i32 = 0
        print("In test")
        return 0