From 377a1fd2eadd2a70cd27f13e2fee6e96c8706a51 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Sat, 17 Oct 2026 10:32:30 +0000 Subject: feat(codegen): overload global functions and procedures Co-Authored-By: Claude Opus 5.5 --- tests/i/overload-functions/notes.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/i/overload-functions/notes.md (limited to 'tests/i/overload-functions/notes.md') diff --git a/tests/i/overload-functions/notes.md b/tests/i/overload-functions/notes.md new file mode 100644 index 0000000..dcfdde3 --- /dev/null +++ b/tests/i/overload-functions/notes.md @@ -0,0 +1,9 @@ +# overload-functions + +Human review: pending. Expected output was independently traced by AI, not captured from cpsc. + +Basis: OVERLOAD is a project extension. + +Trace: INTEGER adds one; positive REAL returns TRUE; two INTEGERs return pair; STRING prints text. Rank-one INTEGER, rank-two INTEGER and REAL arrays select distinct overloads and yield 7, 9 and TRUE. Nested Pick(1) returns INTEGER 2, so the outer call yields 3. + +Bump selects INTEGER and mutates 4 to 5 through BYREF. The ordinary Legacy function still converts INTEGER 1 to REAL and returns TRUE. -- cgit v1.3.1-4-g156e