# Pastebin YhedULeS proc testRootAliasField(a: Nilable) = var aliasA = a if not a.isNil and not a.field.isNil: aliasA.field = nil # a.field = nil we should detect this happens echo a.field.a # can't deref a.field: it might be nil