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

some more tests

This commit is contained in:
Alexander Medvednikov
2019-06-27 14:28:12 +02:00
parent 8c4f7749df
commit 959cc2ea03
3 changed files with 64 additions and 1 deletions

View File

@@ -493,7 +493,6 @@ fn (p mut Parser) async_fn_call(f Fn, method_ph int, receiver_var, receiver_type
}
fn (p mut Parser) fn_call(f Fn, method_ph int, receiver_var, receiver_type string) {
//if !f.is_public && !f.is_c && f.pkg != p.pkg && f.pkg != 'builtin' {
if !f.is_public && !f.is_c && !p.is_test && f.pkg != p.pkg {
p.error('function `$f.name` is private')
}