Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
vlib
/
v
/
tests
/
conditions
/
ifs
/
if_cond_with_alias_test.v
14
lines
·
12
sloc
·
179 bytes
·
6488041a749df9762348d019c4223908c476f2e2
Raw
1
type
BOOL = bool
2
3
fn
example() BOOL {
4
return
true
5
}
6
7
fn
test_if_cond_with_alias() {
8
if
example() {
9
println(
'Should work, or not?'
)
10
assert
true
11
}
else
{
12
assert
false
13
}
14
}
15