From 50a4f50d507bd3ffcea7494edba43de930602136 Mon Sep 17 00:00:00 2001 From: wygsh <132778382+wygsh@users.noreply.github.com> Date: Sat, 23 Sep 2023 14:29:16 +0100 Subject: [PATCH] add test --- vlib/v/tests/alias_to_sum_with_enum_test.v | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 vlib/v/tests/alias_to_sum_with_enum_test.v diff --git a/vlib/v/tests/alias_to_sum_with_enum_test.v b/vlib/v/tests/alias_to_sum_with_enum_test.v new file mode 100644 index 00000000000000..c172679125c645 --- /dev/null +++ b/vlib/v/tests/alias_to_sum_with_enum_test.v @@ -0,0 +1,13 @@ +enum Test { + abc +} + +type SumTest = Test | u8 + +type TestAlias = Test + +fn test_main() { + a := TestAlias.abc + b := SumTest(a) + assert b is Test +}