mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: detect and error on public init function & remove empty init functions
This commit is contained in:

committed by
Alexander Medvednikov

parent
065ce39577
commit
a06e2298f0
@ -6,8 +6,6 @@ module net
|
||||
#include <netdb.h>
|
||||
#include <errno.h>
|
||||
|
||||
fn init() int { return 1 }
|
||||
|
||||
fn error_code() int {
|
||||
return C.errno
|
||||
}
|
||||
|
Reference in New Issue
Block a user