aboutsummaryrefslogtreecommitdiff
path: root/tests/iii/template-deduction-errors/program.cps
blob: 7ec15845c81d9063e4de1aba9561d105690a206b (plain)
1
2
3
4
5
6
7
8
9
10

TEMPLATE <T>
FUNCTION Max(A : T, B : T) RETURNS T
    RETURN A
ENDFUNCTION
TEMPLATE <T>
FUNCTION Undeducible() RETURNS T
    RETURN 0
ENDFUNCTION
OUTPUT Max(1, 2.5)
OUTPUT Undeducible()