PythonExtra/tests/micropython/viper_const.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
228 B
Python
Raw Normal View History

# test loading constants in viper functions
@micropython.viper
def f():
return b"bytes"
print(f())
@micropython.viper
def f():
@micropython.viper
def g() -> int:
return 123
return g
print(f()())