modelize: always check visibility of return types
authorJean Privat <jean@pryen.org>
Sun, 29 Nov 2015 00:49:54 +0000 (19:49 -0500)
committerJean Privat <jean@pryen.org>
Mon, 30 Nov 2015 16:42:46 +0000 (11:42 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>

src/modelize/modelize_property.nit

index cd50d4a..afd299f 100644 (file)
@@ -1060,7 +1060,7 @@ redef class AMethPropdef
                        end
                end
 
-               if mysignature.arity > 0 then
+               if nsig != null then
                        # Check parameters visibility
                        for i in [0..mysignature.arity[ do
                                var nt = nsig.n_params[i].n_type