global_variable5.golden 404 B

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