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

v.checker: add checks for .free() methods

This commit is contained in:
Delyan Angelov
2021-09-09 09:15:21 +03:00
parent 72089c4feb
commit 4faa0f8487
6 changed files with 68 additions and 12 deletions

View File

@ -140,7 +140,7 @@ pub fn (s string) find_between(start string, end string) string {
}
// unnecessary in the JS backend, implemented for api parity.
pub fn (s string) free() {}
pub fn (s &string) free() {}
pub fn (s string) hash() int {
mut h := u32(0)