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