mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: handle builtin enum init correctly
This commit is contained in:
@ -17,3 +17,9 @@ fn test_channel_buffered() {
|
||||
}
|
||||
assert sum == u64(num_iterations) * (num_iterations - 1) / 2
|
||||
}
|
||||
|
||||
fn test_builtin_enum() {
|
||||
x := ChanState.closed
|
||||
assert x == .closed
|
||||
println(x)
|
||||
}
|
||||
|
Reference in New Issue
Block a user