system.substr is not implemented with compilerProcs anymore

This commit is contained in:
Andreas Rumpf 2018-07-11 16:39:16 +02:00
commit 5b59852406
8 changed files with 157 additions and 67 deletions

View file

@ -278,6 +278,8 @@ proc analyseObjectWithTypeField(t: PType): TTypeFieldResult =
proc isGCRef(t: PType): bool =
result = t.kind in GcTypeKinds or
(t.kind == tyProc and t.callConv == ccClosure)
if result and t.kind in {tyString, tySequence} and tfHasAsgn in t.flags:
result = false
proc containsGarbageCollectedRef*(typ: PType): bool =
# returns true if typ contains a reference, sequence or string (all the