mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 17:10:24 +08:00
15 lines
221 B
Python
15 lines
221 B
Python
# 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()())
|