Function Visibilities
address my_addrx{
module A{
fun A_foo():u8{ //private function
return 123
}
}
module B{
use std::debug::print;
fun B_foo():u8{
return my_addrx::A::A_foo() //ERROR - as A_foo() is a private function
}
#[test]
fun testing_B()
{
let number=B_foo();
print(&number);
}
}
}Last updated