Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
vlib
/
v
/
tests
/
aliases
/
alias_eq_op_test.v
10
lines
·
8
sloc
·
148 bytes
·
81237288dcebe24c7e066333c37672a71022ec1a
Raw
1
type
MyInt = int
2
3
fn
(i1 MyInt) == (i2 MyInt) bool {
4
return
int(i1) == int(i2)
5
}
6
7
fn
test_main() {
8
c := MyInt(3) == MyInt(1)
9
assert c ==
false
10
}
11