From c56877035d6600b463a9cbf0e339f7548c0b46fd Mon Sep 17 00:00:00 2001 From: _ov4 Date: Wed, 21 Oct 2026 05:54:26 +0000 Subject: feat(codegen): instantiate function templates by deduction Co-Authored-By: Claude Opus 5.5 --- tests/iii/template-overload-errors/program.cps | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/iii/template-overload-errors/program.cps (limited to 'tests/iii/template-overload-errors/program.cps') diff --git a/tests/iii/template-overload-errors/program.cps b/tests/iii/template-overload-errors/program.cps new file mode 100644 index 0000000..9b60f76 --- /dev/null +++ b/tests/iii/template-overload-errors/program.cps @@ -0,0 +1,8 @@ +TEMPLATE +FUNCTION Pick(Value : T) RETURNS T + RETURN Value +ENDFUNCTION +OVERLOAD FUNCTION Pick(Value : INTEGER) RETURNS INTEGER + RETURN Value +ENDFUNCTION +OUTPUT Pick(1) -- cgit v1.3.1-4-g156e