diff options
Diffstat (limited to 'v_windows/v/vlib/v/fmt/tests/import_with_alias_keep.vv')
-rw-r--r-- | v_windows/v/vlib/v/fmt/tests/import_with_alias_keep.vv | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/v_windows/v/vlib/v/fmt/tests/import_with_alias_keep.vv b/v_windows/v/vlib/v/fmt/tests/import_with_alias_keep.vv new file mode 100644 index 0000000..f883f0e --- /dev/null +++ b/v_windows/v/vlib/v/fmt/tests/import_with_alias_keep.vv @@ -0,0 +1,25 @@ +import os +import time as t +import some.library as slib +import crypto.sha256 +import mymod.sha256 as mysha256 + +type my_alias = fn (t slib.MyType) + +struct Foo { + bar t.Time + bars []t.Time + barref &t.Time + barrefs []&t.Time + c_type C.some_struct + js_type JS.other_struct +} + +fn main() { + println('start') + t.sleep_ms(500) + println('end') + os.system('date') + v_hash := sha256.sum('hi'.bytes()).hex() + my_hash := mysha256.sum('hi'.bytes()).hex() +} |