metamodel: fix and comment upcast_for
[nit.git] / src / metamodel / genericity.nit
index 112212e..dfff8c3 100644 (file)
@@ -216,7 +216,7 @@ special MMTypeFormal
                return t
        end
 
-       redef meth upcast_for(c) do return self
+       redef meth upcast_for(c) do return _bound.upcast_for(c)
 
        meth bound=(t: MMType)
        do