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:
@@ -285,6 +285,8 @@ pub fn replace_op(s string) string {
|
||||
`*` { '_mult' }
|
||||
`/` { '_div' }
|
||||
`%` { '_mod' }
|
||||
`<` { '_lt' }
|
||||
`>` { '_gt' }
|
||||
else { '' }
|
||||
}
|
||||
return s[..s.len - 1] + suffix
|
||||
|
||||
Reference in New Issue
Block a user