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

@@ -234,7 +234,7 @@ pub fn (mut a array) delete_last() {
}
[unsafe]
pub fn (a array) free() {
pub fn (a &array) free() {
}
// todo: once (a []byte) will work rewrite this