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

pull/1480/head
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()
}