summaryrefslogtreecommitdiff
path: root/libvaladoc
diff options
context:
space:
mode:
Diffstat (limited to 'libvaladoc')
-rw-r--r--libvaladoc/api/typereference.vala2
1 files changed, 2 insertions, 0 deletions
diff --git a/libvaladoc/api/typereference.vala b/libvaladoc/api/typereference.vala
index 41b766e41..c328eaf39 100644
--- a/libvaladoc/api/typereference.vala
+++ b/libvaladoc/api/typereference.vala
@@ -62,6 +62,8 @@ public class Valadoc.Api.TypeReference : Item {
return Ownership.OWNED;
}
return Ownership.DEFAULT;
+ } else if (type.parent_node is Vala.Constant) {
+ return Ownership.DEFAULT;
}
if (type.is_weak ()) {
return Ownership.UNOWNED;