Damien George
8 years ago
2 changed files with 12 additions and 0 deletions
@ -0,0 +1,10 @@ |
|||
# test import within viper function |
|||
|
|||
@micropython.viper |
|||
def f(): |
|||
import micropython |
|||
print(micropython.const(1)) |
|||
|
|||
from micropython import const |
|||
print(const(2)) |
|||
f() |
@ -0,0 +1,2 @@ |
|||
1 |
|||
2 |
Loading…
Reference in new issue