Guest User

Untitled

a guest
Jul 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. dominik@ubuntu:~/Desktop/code/outside/git/Nimrod$ git diff
  2. diff --git a/rod/types.nim b/rod/types.nim
  3. index ed9d527..6c0d78f 100755
  4. --- a/rod/types.nim
  5. +++ b/rod/types.nim
  6. @@ -430,8 +430,8 @@ proc TypeToString(typ: PType, prefer: TPreferedDesc = preferName): string =
  7. if (prefer == preferName) and (t.sym != nil):
  8. return t.sym.Name.s
  9. case t.Kind
  10. - of tyGenericInst:
  11. - result = typeToString(lastSon(t), prefer)
  12. + of tyGenericInst:
  13. + result = typeToString(t.sons[0]) & '[' & typeToString(t.sons[1]) & ']'
  14. of tyArray:
  15. if t.sons[0].kind == tyRange:
  16. result = "array[" & rangeToStr(t.sons[0].n) & ", " &
Add Comment
Please, Sign In to add comment