* fixes #13715

* fix test
This commit is contained in:
Arne Döring 2020-03-22 20:01:01 +01:00 • committed by GitHub
commit 64ffa17f0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 2 deletions

View file

@ -593,7 +593,10 @@ proc typeToString(typ: PType, prefer: TPreferedDesc = preferName): string =
of tyUncheckedArray:
result = "UncheckedArray[" & typeToString(t[0]) & ']'
of tySequence:
result = "seq[" & typeToString(t[0]) & ']'
if t.sym != nil and prefer != preferResolved:
result = t.sym.name.s
else:
result = "seq[" & typeToString(t[0]) & ']'
of tyOpt:
result = "opt[" & typeToString(t[0]) & ']'
of tyOrdinal: