2016-11-10 06:54:55 -05:00
|
|
|
# test import within viper function
|
|
|
|
|
2020-03-22 22:26:08 -04:00
|
|
|
|
2016-11-10 06:54:55 -05:00
|
|
|
@micropython.viper
|
|
|
|
def f():
|
|
|
|
import micropython
|
2020-03-22 22:26:08 -04:00
|
|
|
|
2016-11-10 06:54:55 -05:00
|
|
|
print(micropython.const(1))
|
|
|
|
|
|
|
|
from micropython import const
|
2020-03-22 22:26:08 -04:00
|
|
|
|
2016-11-10 06:54:55 -05:00
|
|
|
print(const(2))
|
2020-03-22 22:26:08 -04:00
|
|
|
|
|
|
|
|
2016-11-10 06:54:55 -05:00
|
|
|
f()
|