mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
v.checker: add checks for .free()
methods
This commit is contained in:
parent
72089c4feb
commit
4faa0f8487
6 changed files with 68 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue