Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
lv37 authored Sep 23, 2023
1 parent 38a136e commit 50a4f50
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions vlib/v/tests/alias_to_sum_with_enum_test.v
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 50a4f50

Please sign in to comment.