fun1.golden 360 B

1234567891011121314151617181920
  1. ********** source program **********
  2. fn f Int: x -> Int {
  3. return (x - 1);
  4. }
  5. fn main () -> Int {
  6. return f(0 = 1);
  7. }
  8. ********** type checking **********
  9. --- step exp Int --->
  10. --- step exp Int --->
  11. --- step exp Int --->
  12. --- step exp Int --->
  13. --- step exp Int --->
  14. --- step exp Int --->
  15. 10: type error in call
  16. expected: Int
  17. actual: Tuple(0 = Int)
  18. EXIT CODE: 255