diff options
Diffstat (limited to 'tests/iii/template-overload-errors/program.cps')
| -rw-r--r-- | tests/iii/template-overload-errors/program.cps | 8 |
1 files changed, 8 insertions, 0 deletions
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 <T> +FUNCTION Pick(Value : T) RETURNS T + RETURN Value +ENDFUNCTION +OVERLOAD FUNCTION Pick(Value : INTEGER) RETURNS INTEGER + RETURN Value +ENDFUNCTION +OUTPUT Pick(1) |
