compiler: add a test case to ensure more stable local modules
parent
3e31e116f3
commit
aff8d05040
|
@ -0,0 +1,7 @@
|
||||||
|
|
||||||
|
module local
|
||||||
|
|
||||||
|
pub fn local_fn() bool {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
|
||||||
|
import compiler.tests.local
|
||||||
|
|
||||||
|
fn test_local_module_is_callable() {
|
||||||
|
assert local.local_fn()
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue