diff options
Diffstat (limited to 'tests/iii/template-class-errors/program.cps')
| -rw-r--r-- | tests/iii/template-class-errors/program.cps | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/iii/template-class-errors/program.cps b/tests/iii/template-class-errors/program.cps new file mode 100644 index 0000000..67f8db4 --- /dev/null +++ b/tests/iii/template-class-errors/program.cps @@ -0,0 +1,13 @@ +TEMPLATE <T> +CLASS Box + Value : T +ENDCLASS +TEMPLATE <T> +FUNCTION Make() RETURNS T + DECLARE Value : T + RETURN Value +ENDFUNCTION +OUTPUT Make<Box<Nope>>() +DECLARE TooMany : Box<INTEGER, REAL> +DECLARE TooFew : Box +DECLARE Unknown : Box<Nope> |
