diff options
author | Araq <rumpf_a@web.de> | 2014-11-12 02:56:02 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-11-12 02:56:02 +0100 |
commit | 77353b8084922c4a79b63109382185cbe182ca54 (patch) | |
tree | 6cb99f91071bc18dd37a86b62b0b95e656cc8697 | |
parent | 29b1709fc45aec2a6224a03dc0d1363a21958a42 (diff) | |
download | Nim-77353b8084922c4a79b63109382185cbe182ca54.tar.gz |
fixes #1127
-rw-r--r-- | compiler/ccgtypes.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ccgtypes.nim b/compiler/ccgtypes.nim index fbdea7e66..c3905f3e6 100644 --- a/compiler/ccgtypes.nim +++ b/compiler/ccgtypes.nim @@ -330,7 +330,7 @@ proc getSimpleTypeDesc(m: BModule, typ: PType): PRope = of tyNil: result = typeNameOrLiteral(typ, "0") of tyInt..tyUInt64: result = typeNameOrLiteral(typ, NumericalTypeToStr[typ.kind]) - of tyRange: result = getSimpleTypeDesc(m, typ.sons[0]) + of tyDistinct, tyRange: result = getSimpleTypeDesc(m, typ.sons[0]) else: result = nil proc getTypePre(m: BModule, typ: PType): PRope = |