Eo base: Make parent nullable.
authorTom Hacohen <tom@stosb.com>
Mon, 11 Apr 2016 16:29:15 +0000 (17:29 +0100)
committerTom Hacohen <tom@stosb.com>
Thu, 14 Apr 2016 15:36:10 +0000 (16:36 +0100)
It's allowed to be null, so mark it as such. This is useful
for languages that support nullable vs non-nullable types.

src/lib/eo/eo_base.eo

index ad6cd68..9043cf9 100644 (file)
@@ -62,7 +62,7 @@ abstract Eo.Base ()
             [[Get the parent of an object]]
          }
          values {
-            parent: Eo.Base*; [[the new parent]]
+            parent: Eo.Base * @nullable; [[the new parent]]
          }
       }
       @property event_global_freeze_count @class {