v2 / vlib / v / tests / aliases / alias_eq_op_test.v
10 lines · 8 sloc · 148 bytes · 81237288dcebe24c7e066333c37672a71022ec1a
Raw
1type MyInt = int
2
3fn (i1 MyInt) == (i2 MyInt) bool {
4 return int(i1) == int(i2)
5}
6
7fn test_main() {
8 c := MyInt(3) == MyInt(1)
9 assert c == false
10}
11