summaryrefslogtreecommitdiff
path: root/tests/micropython/native_const.py
blob: b48499550e91b8d2e0caf211f051f942a81dbb35 (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 native functions


@micropython.native
def f():
    return b"bytes"


print(f())


@micropython.native
def f():
    @micropython.native
    def g():
        return 123

    return g


print(f()())