ARC works for async on Windows (#13179)

This commit is contained in:
Andreas Rumpf 2020-01-17 11:14:17 +01:00 • committed by GitHub
commit 7626907401
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 110 additions and 40 deletions

View file

@ -366,8 +366,8 @@ proc canFormAcycleAux(marker: var IntSet, typ: PType, startId: int): bool =
else: discard
proc isFinal*(t: PType): bool =
var t = t.skipTypes(abstractInst)
result = t.kind != tyObject or tfFinal in t.flags
let t = t.skipTypes(abstractInst)
result = t.kind != tyObject or tfFinal in t.flags or isPureObject(t)
proc canFormAcycle*(typ: PType): bool =
var marker = initIntSet()