Files
sakurac/tests/programs/modules_see_nothing_of_the_program_1.sakura
T
2026-11-19 04:54:17 -06:00

13 lines
270 B
Plaintext

import std::io;
import tools;
import user;
struct scratch { var at: int; }
def main(): void {
val s := scratch { at = 2 };
println($"{s.at} {count()}");
}
module tools;
pub def scratch(): int { return 1; }
module user;
pub def count(): int { return scratch() + 4; }