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

checker: check deprecated functions

This commit is contained in:
yuyi
2020-06-23 22:25:24 +08:00
committed by GitHub
parent db28796b5f
commit 7efb3ecb34
7 changed files with 36 additions and 14 deletions

View File

@@ -1307,7 +1307,8 @@ pub fn (s string) limit(max int) string {
[deprecated]
pub fn (c byte) is_white() bool {
panic('Use `string.is_space` instead of `string.is_white')
eprintln('warning: `string.is_white` has been deprecated, use `string.is_space` instead')
return c.is_space()
}
pub fn (s string) hash() int {