summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-03-04 08:31:11 +0100
committerAraq <rumpf_a@web.de>2014-03-04 08:31:11 +0100
commited5bbfe36d584b8fd2a451718b05fba8149b0958 (patch)
treeda58705fec6be51ad51c917086b2d27ed00ede08 /compiler
parent7918c30b903123b9c12cc664f99f43d0754c4fdd (diff)
downloadNim-ed5bbfe36d584b8fd2a451718b05fba8149b0958.tar.gz
fixes #968
Diffstat (limited to 'compiler')
-rw-r--r--compiler/ccgutils.nim1
-rw-r--r--compiler/types.nim3
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/ccgutils.nim b/compiler/ccgutils.nim
index 1129ecbef..da1673ca4 100644
--- a/compiler/ccgutils.nim
+++ b/compiler/ccgutils.nim
@@ -130,7 +130,6 @@ proc getUniqueType*(key: PType): PType =
       idTablePut(gTypeTable[k], key, key)
       result = key
   of tyProc:
-    # tyVar is not 100% correct, but would speeds things up a little:
     if key.callConv != ccClosure:
       result = key
     else:
diff --git a/compiler/types.nim b/compiler/types.nim
index e6178f446..edf5ab47b 100644
--- a/compiler/types.nim
+++ b/compiler/types.nim
@@ -452,7 +452,8 @@ proc typeToString(typ: PType, prefer: TPreferedDesc = preferName): string =
       of tyProc: "proc"
       of tyObject: "object"
       of tyTuple: "tuple"
-      else: (internalAssert(false); "")
+      of tyOpenArray: "openarray"
+      else: typeToStr[t.base.kind]
   of tyUserTypeClassInst:
     let body = t.base
     result = body.sym.name.s & "["