summaryrefslogtreecommitdiff
path: root/tests/micropython/viper_const.py
blob: 5085ede90f07436e9c56aac40f444c1ff54931e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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()())