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

checker: add check for using a private const in another module (#8501)

This commit is contained in:
zakuro
2021-02-03 17:17:13 +09:00
committed by GitHub
parent 3ef4885094
commit e30e794884
9 changed files with 34 additions and 10 deletions

View File

@ -1,8 +1,11 @@
module net
// Well defined errors that are returned from socket functions
const (
errors_base = 0
)
// Well defined errors that are returned from socket functions
pub const (
err_new_socket_failed = error_with_code('net: new_socket failed to create socket', errors_base+1)
err_option_not_settable = error_with_code('net: set_option_xxx option not settable', errors_base+2)
err_option_wrong_type = error_with_code('net: set_option_xxx option wrong type', errors_base+3)