From 63f7736d00b70210679ed3cbfc87b93ef3f18ef8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Wed, 2 Sep 2015 15:14:39 -0400 Subject: [PATCH] contrib/objcwrapper: make sure to not consider a class property as an init MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- contrib/objcwrapper/src/objc_model.nit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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` -- 1.7.9.5