summaryrefslogtreecommitdiff
path: root/tests/micropython/viper_const.py
blob: 230b282f2352ecddd3dd64cdb2b80142a8412da2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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()())