src: use `ASuperExpr::mpropdef` instead of asking the frame or visitors
[nit.git] / src / abstract_compiler.nit
index b4d0779..2de8333 100644 (file)
@@ -2499,7 +2499,7 @@ redef class ASuperExpr
                end
 
                # stantard call-next-method
-               return v.supercall(v.frame.mpropdef.as(MMethodDef), recv.mtype.as(MClassType), args)
+               return v.supercall(mpropdef.as(not null), recv.mtype.as(MClassType), args)
        end
 end