contrib/objcwrapper: make sure to not consider a class property as an init
authorAlexis Laferrière <alexis.laf@xymus.net>
Wed, 2 Sep 2015 19:14:39 +0000 (15:14 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Thu, 3 Sep 2015 14:32:31 +0000 (10:32 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

contrib/objcwrapper/src/objc_model.nit

index 3777f07..e5c5702 100644 (file)
@@ -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`