From: Alexis Laferrière Date: Wed, 2 Sep 2015 19:14:39 +0000 (-0400) Subject: contrib/objcwrapper: make sure to not consider a class property as an init X-Git-Tag: v0.7.8~42^2~4 X-Git-Url: http://nitlanguage.org contrib/objcwrapper: make sure to not consider a class property as an init Signed-off-by: Alexis Laferrière --- diff --git a/contrib/objcwrapper/src/objc_model.nit b/contrib/objcwrapper/src/objc_model.nit index 3777f07..e5c5702 100644 --- a/contrib/objcwrapper/src/objc_model.nit +++ b/contrib/objcwrapper/src/objc_model.nit @@ -77,7 +77,7 @@ class ObjcMethod var return_type: String is noinit, writable # Does this method look like a constructor/method? - fun is_init: Bool do return params.first.name.has_prefix("init") + fun is_init: Bool do return params.first.name.has_prefix("init") and not is_class_property end # Attribute of an `ObjcClass`