1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen: implement > and < for structs (#7774)

This commit is contained in:
Swastik Baranwal
2021-01-01 19:24:32 +05:30
committed by GitHub
parent d15d13674c
commit 24b18f05c4
10 changed files with 53 additions and 23 deletions

View File

@@ -285,6 +285,8 @@ pub fn replace_op(s string) string {
`*` { '_mult' }
`/` { '_div' }
`%` { '_mod' }
`<` { '_lt' }
`>` { '_gt' }
else { '' }
}
return s[..s.len - 1] + suffix