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

compiler: add a test case to ensure more stable local modules

This commit is contained in:
Marco Böttcher 2019-08-05 10:05:00 +02:00 committed by Alexander Medvednikov
parent 3e31e116f3
commit aff8d05040
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,7 @@
module local
pub fn local_fn() bool {
return true
}

View File

@ -0,0 +1,7 @@
import compiler.tests.local
fn test_local_module_is_callable() {
assert local.local_fn()
}