From b47c302bbffd668334f307d512b674f804f8f2fc Mon Sep 17 00:00:00 2001 From: _ov4 Date: Sat, 17 Oct 2026 10:35:33 +0000 Subject: docs: document OVERLOAD Co-Authored-By: Claude Opus 5.5 --- AGENTS/ARCH.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'AGENTS/ARCH.md') diff --git a/AGENTS/ARCH.md b/AGENTS/ARCH.md index f85364b..cb0bc20 100644 --- a/AGENTS/ARCH.md +++ b/AGENTS/ARCH.md @@ -88,7 +88,7 @@ Driver behavior (`tools/driver/main.cc`): matched against command-line inputs with fs::equivalent. The driver rejects repeated inputs and computes transitive symbol visibility; cycles do not copy statements. CodeGen records owners for signatures, types and exported constants/globals and filters - lookup by the current unit. Cross-file duplicate definitions are always errors. + lookup by the current unit. Cross-file duplicate definitions are errors; distinct explicit OVERLOAD signatures may share a name. The entry file contains the only top-level code, or parameterless FUNCTION MAIN returning INTEGER; MAIN plus top-level code and builds without either entry are errors. SourceUnit borrows parsed statements for compilation. Type names are reserved across -- cgit v1.3.1-4-g156e