ludic/examples/rejected/private_module.ludic

8 lines
212 B
Text

# L3: `add` is private to module bank; calling it from outside the module is refused
import "private_bank"
program Private {
entry (bank_st: mut BankState) {
add(bank_st, 5)
print(total(bank_st))
}
}