| 1 | import os |
| 2 | import time as t |
| 3 | import some.library as slib |
| 4 | import crypto.sha256 |
| 5 | import mymod.sha256 as mysha256 |
| 6 | |
| 7 | type my_alias = fn (t slib.MyType) |
| 8 | |
| 9 | struct Foo { |
| 10 | bar t.Time |
| 11 | bars []t.Time |
| 12 | barref &t.Time |
| 13 | barrefs []&t.Time |
| 14 | c_type C.some_struct |
| 15 | js_type JS.other_struct |
| 16 | } |
| 17 | |
| 18 | fn main() { |
| 19 | println('start') |
| 20 | t.sleep_ms(500) |
| 21 | println('end') |
| 22 | os.system('date') |
| 23 | v_hash := sha256.sum('hi'.bytes()).hex() |
| 24 | my_hash := mysha256.sum('hi'.bytes()).hex() |
| 25 | } |
| 26 |