tifexpr_typeinference.nim 255 B

12345678910111213141516171819202122232425
  1. discard """
  2. action: compile
  3. """
  4. #bug #712
  5. import tables
  6. proc test(): Table[string, string] =
  7. discard
  8. proc test2(): Table[string, string] =
  9. discard
  10. var x = 5
  11. let blah =
  12. case x
  13. of 5:
  14. test2()
  15. of 2:
  16. test()
  17. else: test()
  18. echo blah.len